-
Story
-
Resolution: Done
-
Major
-
None
-
None
-
None
Create a component command that will be the initial command for generating the new simplified directory structure.
Add options for:
- output
- componentName
- applicationName
- secret (This is the term HAS uses. The bootstrap command use the git-host-access-token)
- git repo URL
- targetPort
- route
- overwrite
- interactive
- private-repo-driver
- save-token-keyring
- push-to-git
Add validation to all options where apply. Some of these will be very similar to the bootstrap command. For example, the component name should be limited to 63 characters.
Accept user input values and map them to the API data structures from the common library.
Generate the gitops repo by calling the GenerateAndPush method from the library
Add tests for all command options
Acceptance criteria:
- Able to generate the new component-based directory structure
- Able to use interactive mode and non-interactive mode to accept inputs for the app, app's components, and various options
- All tests are running and validate all options and the generated gitops directory structure