spread generate
This command would generate files from structured data (i.e. Kubernetes objects). The naming convention will take the form of the directory structure with dashes instead of slashes. For example, with Kubernetes, it would be apiVersion-namespace-objectType-name.fileType, i.e. v2-default-rc-webapp.yaml.
-t --type
Specify the type of file - we'll just support JSON or YAML in the beginning. YAML is the default format if neither is specified.
Specify the tree to create files from. If not specified, the index will be used.
[…]
Specify the object path. If not specified, files for all objects will be generated.
Proposed command is
spread generate [-t --type <JSON | YAML>] [<tree-ish>] [--] [<object-paths>…]
spread generate This command would generate files from structured data (i.e. Kubernetes objects). The naming convention will take the form of the directory structure with dashes instead of slashes. For example, with Kubernetes, it would be apiVersion-namespace-objectType-name.fileType, i.e. v2-default-rc-webapp.yaml.
-t --type Specify the type of file - we'll just support JSON or YAML in the beginning. YAML is the default format if neither is specified.
[…]
Specify the object path. If not specified, files for all objects will be generated.