-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from storyblok/feature/generated-file-naming-…
…syntax feat!: generated file naming syntax
- Loading branch information
Showing
8 changed files
with
169 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import type { CommandOptions } from '../../types' | ||
|
||
/** | ||
* Interface representing the options for the `pull-languages` command. | ||
*/ | ||
export interface PullLanguagesOptions extends CommandOptions { | ||
/** | ||
* The path to save the languages file to. | ||
* Defaults to `.storyblok/languages`. | ||
* @default `.storyblok/languages` | ||
*/ | ||
path?: string | ||
/** | ||
* The space ID. | ||
* @required true | ||
*/ | ||
space: string | ||
/** | ||
* The filename to save the file as. | ||
* Defaults to `languages`. The file will be saved as `<filename>.<space>.json`. | ||
* @default `languages | ||
*/ | ||
filename?: string | ||
/** | ||
* The suffix to add to the filename. | ||
* Defaults to the space ID. | ||
* @default space | ||
*/ | ||
suffix?: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* Interface representing the default options for a CLI command. | ||
*/ | ||
export interface CommandOptions { | ||
/** | ||
* Indicates whether verbose output is enabled. | ||
*/ | ||
verbose: boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters