README.md in tcollier-commando-0.1.2 vs README.md in tcollier-commando-0.2.0
- old
+ new
@@ -5,10 +5,11 @@
## Versions
* `0.1.0` - Initial release
* `0.1.1` - Alphabetize commands printed via `help`
* `0.1.2` - Remove empty lines from history
+* `0.2.0` - Persist history across CLI sessions
## Installation
Add this line to your application's Gemfile:
@@ -29,12 +30,19 @@
You can configure the start up greeting, the command line prompt, and the set
of available commands to use.
```ruby
Commando.configure do |config|
+ # The greeting to print when the CLI is started
config.greeting = 'Welcome to my CLI. Type "help" for a list of commands'
+
+ # The prompt to print every time a new command is desired
config.prompt = 'my-app> '
+ # An optional file where command line history is stored across sessions
+ config.history_file = '/tmp/.commando_history'
+
+ # Register multiple commands
config.register 'addfriend', MyApp::AddFriend, 'Adds a friend to your network'
end
```
### Actions