pokanop / nostromo

👽 CLI for building powerful aliases and tools
https://nostromo.sh/
MIT License
142 stars 8 forks source link

Add move command to switch command nodes #50

Closed saheljalal closed 2 years ago

saheljalal commented 2 years ago

Moving existing commands can be tricky directly in YAML so provide a command to make it simple to move command nodes from one place to another. If the destination already exists, just move it and otherwise create the new key path on the fly.

Optionally update the description for the destination node if it exists at the same time.

nostromo move cmd [source] [dest] [options]
# e.g.
nostromo move cmd install dev.install -d "Install various tools"