Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deployable/kknife
k command shortcuts for Chefs knife
https://github.com/deployable/kknife
chef knife ruby shortcut
Last synced: 17 days ago
JSON representation
k command shortcuts for Chefs knife
- Host: GitHub
- URL: https://github.com/deployable/kknife
- Owner: deployable
- License: apache-2.0
- Created: 2013-12-14T16:42:17.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-28T07:28:32.000Z (about 9 years ago)
- Last Synced: 2024-03-14T22:53:08.436Z (10 months ago)
- Topics: chef, knife, ruby, shortcut
- Language: Ruby
- Homepage:
- Size: 144 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## kknife 0.1.2
#### Shortcuts for the chef `knife` command
kknife lets you use the shortest substring to uniquely identify a knife sub command.
kknife also provides a `k` script to launch the lookups`k n e somenode` = `knife node edit somenode`
`k c u somebook` = `knife cookbook upload somebook`
`k e ff somefile` = `knife environment from_file somefile`
`k -l` lists all your commands
`k -d` might tell you what's going wrong (debug).
All command line options at the end of the command are passed through to knife unmodified and work as knife specifies.
#### Lookups
Shortcuts and ambiguous commands are currently statically defined in `lib/kknife/lookup.rb`. These will be user configurable/overridable. Some form of json/yml blob in ~/.chef/ should do.
##### Shortcuts
```
'ff' => [ 'from', 'file' ],
'db' => [ 'data', 'bag' ],
'cs' => [ 'cookbook', 'site' ],
'bd' => [ 'bulk', 'delete' ],
'ne' => [ 'node', 'edit' ],
'ns' => [ 'node', 'show' ],
'rl' => [ 'run', 'list' ],
```
##### Ambiguities
```
'd' => ['download'],
'e' => ['environment'],
'r' => ['role'],
'c' => ['cookbook'],
```