Class: GNote::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/gnote/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCLI

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 = options.dup
  the_shell = (options["no-color"] ? Thor::Shell::Basic.new : shell)
  GNote.ui = UI::Shell.new(the_shell)
  GNote.ui.debug! if options["verbose"]
end

Instance Attribute Details

#oObject (readonly)

Returns the value of attribute o.



8
9
10
# File 'lib/gnote/cli.rb', line 8

def o
  @o
end

Instance Method Details

#tagsObject



19
20
21
# File 'lib/gnote/cli.rb', line 19

def tags
  GNote::Tags.tags
end

#watchObject



24
25
26
# File 'lib/gnote/cli.rb', line 24

def watch
  GNote::Tags.watch
end