Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a command that can copy layer file #24

Open
naogify opened this issue Oct 26, 2021 · 1 comment
Open

Add a command that can copy layer file #24

naogify opened this issue Oct 26, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@naogify
Copy link
Contributor

naogify commented Oct 26, 2021

Add the command to duplicates a new layer based on an existing layer. Also, it's better to have an option to create a template layer file.

Command might be like

$ charites copy old-layer.yml new-layer.yml
or
$ charites add-layer --copy old-layer.yml
@hfu
Copy link
Member

hfu commented Oct 27, 2021

A great idea! May I propose the following:

Assumption

The source style description forms the standard charites structure, such as:

style.yml
layers/layer1.yml
layers/layer2.yml

Command

charites copy style.yml layer1 layer1a

This should make a duplicate of layers/layer1.yml as layers/layer1a.yml and insert reference to layers/layer1a.yml from style.yml.

What do you think?

@hfu hfu added the enhancement New feature or request label Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants