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

Support rm -rf #66

Open
Drake-Eidukas opened this issue Feb 8, 2019 · 1 comment
Open

Support rm -rf #66

Drake-Eidukas opened this issue Feb 8, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@Drake-Eidukas
Copy link
Contributor

With git, you can run git rm -rf <dir> to remove a directory, but this fails with cfg.

drake@element:~/workspace/test_base$ cfg rm lol
error: 'git rm --cached lol' failed
error: exit status 128
output: fatal: not removing 'lol' recursively without -r
drake@element:~/workspace/test_base$ cfg rm lol -r
Error: unknown shorthand flag: 'r' in -r
Usage:
  cfg rm [flags]

Flags:
  -h, --help   help for rm

Global Flags:
      --global-config string   global config file (default is $HOME/.cfg.yaml)

unknown shorthand flag: 'r' in -r
@Drake-Eidukas
Copy link
Contributor Author

Related: There's the todo message--

// TODO: intelligently order filePaths to remove
// all instances of a templ before removing the templ

We should document this intended functionality in the CLI help message, as well as figure out how exactly we want to go about doing this-- should it be that if you rm a template that other templates are based on, you rm those child templates?

@Drake-Eidukas Drake-Eidukas added the enhancement New feature or request label Feb 11, 2019
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

1 participant