Class Guard::CLI
In: lib/guard/cli.rb
Parent: Thor

Facade for the Guard command line interface managed by [Thor](github.com/wycats/thor). This is the main interface to Guard that is called by the Guard binary `bin/guard`. Do not put any logic in here, create a class and delegate instead.

Methods

init   list   show   start   version  

Public Instance methods

Initializes the templates of all installed Guard plugins and adds them to the `Guardfile` when no Guard name is passed. When passing Guard plugin names it does the same but only for those Guard plugins.

@see Guard::Guard.initialize_template @see Guard::Guard.initialize_all_templates

@param [Array<String>] guard_names the name of the Guard plugins to initialize

List the Guard plugins that are available for use in your system and marks those that are currently used in your `Guardfile`.

@see Guard::DslDescriber.list

Shows all Guard plugins and their options that are defined in the `Guardfile`

@see Guard::DslDescriber.show

Start Guard by initializing the defined Guard plugins and watch the file system. This is the default task, so calling `guard` is the same as calling `guard start`.

@see Guard.start

Shows the current version of Guard.

@see Guard::VERSION

[Validate]