redspread / spread

Docker to Kubernetes in one command
https://coreos.com
Apache License 2.0
1.84k stars 83 forks source link

Generate files from structured data #144

Open mfburnett opened 8 years ago

mfburnett commented 8 years ago

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 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.