-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
612 additions
and
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"options": [ | ||
{ | ||
"flags": "--app-env-initial <value>", | ||
"description": "Specifies the initial environment to be used when the application starts (e.g., 'development', 'staging', or 'production').", | ||
"required": true, | ||
"example": "--app-env-initial development" | ||
}, | ||
{ | ||
"flags": "--app-env-dir <value>", | ||
"description": "Defines the directory path where environment configuration files are stored (relative or absolute path).", | ||
"required": true, | ||
"example": "--app-env-dir ./config/environments" | ||
}, | ||
{ | ||
"flags": "--app-env-hide <value>", | ||
"description": "Specifies one or more environments to hide from selection or visibility (comma-separated list).", | ||
"required": false, | ||
"example": "--app-env-hide staging,test" | ||
} | ||
] | ||
} |
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,5 @@ | ||
{ | ||
"dependencies": { | ||
"@brandingbrand/fsapp": "11.0.0" | ||
} | ||
} |
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,74 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Flagship Code Commands Configuration", | ||
"description": "Schema for defining custom commander options in flagship-code.commands.json", | ||
"type": "object", | ||
"properties": { | ||
"options": { | ||
"type": "array", | ||
"description": "An array of custom options to be dynamically added to commander commands", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"flags": { | ||
"type": "string", | ||
"description": "The flag syntax for the option, following commander conventions (e.g., '--flag <value>').", | ||
"pattern": "^--[a-zA-Z0-9\\-_]+(\\s<[a-zA-Z0-9\\-_]+>|\\s\\[[a-zA-Z0-9\\-_]+\\])?$", | ||
"examples": [ | ||
"--custom-flag <value>", | ||
"--enable-feature", | ||
"--mode [type]" | ||
], | ||
"minLength": 2 | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "A brief description of the option, including the expected value format or type.", | ||
"minLength": 1, | ||
"examples": [ | ||
"Specifies the initial environment to use, e.g., 'development', 'staging', or 'production'.", | ||
"Defines the path to the environments directory.", | ||
"A comma-separated list of environments to hide." | ||
] | ||
}, | ||
"example": { | ||
"type": "string", | ||
"description": "A concrete example showing how to use the option.", | ||
"examples": [ | ||
"--app-env-initial development", | ||
"--app-env-dir ./config/environments", | ||
"--app-env-hide staging,test" | ||
] | ||
}, | ||
"defaultValue": { | ||
"description": "The default value for the option if it is not specified by the user.", | ||
"anyOf": [ | ||
{"type": "string"}, | ||
{"type": "number"}, | ||
{"type": "boolean"}, | ||
{"type": "null"} | ||
] | ||
}, | ||
"choices": { | ||
"type": "array", | ||
"description": "Restrict the option's possible values to a predefined set.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"uniqueItems": true, | ||
"examples": [["debug", "release", "test"]] | ||
}, | ||
"required": { | ||
"type": "boolean", | ||
"description": "Indicates whether the option is mandatory.", | ||
"default": false | ||
} | ||
}, | ||
"required": ["flags", "description"], | ||
"additionalProperties": false | ||
} | ||
} | ||
}, | ||
"required": ["options"], | ||
"additionalProperties": false | ||
} |
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
Oops, something went wrong.