Class: GNote::CLI
- Inherits:
-
Thor
- Object
- Thor
- GNote::CLI
- Defined in:
- lib/gnote/cli.rb
Instance Attribute Summary collapse
-
#o ⇒ Object
readonly
Returns the value of attribute o.
Instance Method Summary collapse
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
- #tags ⇒ Object
- #watch ⇒ Object
Constructor Details
#initialize ⇒ CLI
Returns a new instance of CLI.
10 11 12 13 14 15 16 |
# File 'lib/gnote/cli.rb', line 10 def initialize(*) super o = @o = .dup the_shell = (["no-color"] ? Thor::Shell::Basic.new : shell) GNote.ui = UI::Shell.new(the_shell) GNote.ui.debug! if ["verbose"] end |
Instance Attribute Details
#o ⇒ Object (readonly)
Returns the value of attribute o.
8 9 10 |
# File 'lib/gnote/cli.rb', line 8 def o @o end |
Instance Method Details
#tags ⇒ Object
19 20 21 |
# File 'lib/gnote/cli.rb', line 19 def GNote::Tags. end |
#watch ⇒ Object
24 25 26 |
# File 'lib/gnote/cli.rb', line 24 def watch GNote::Tags.watch end |