Class: Rixie::CLI::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rixie/cli/commands/base.rb

Direct Known Subclasses

Compress, Context, Help, Model, Strategy

Instance Method Summary collapse

Constructor Details

#initialize(renderer:) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/rixie/cli/commands/base.rb', line 7

def initialize(renderer:)
  @renderer = renderer
end

Instance Method Details

#call(arg, cli:) ⇒ Object



19
20
21
# File 'lib/rixie/cli/commands/base.rb', line 19

def call(arg, cli:)
  raise NotImplementedError
end

#complete(input) ⇒ Object



23
24
25
# File 'lib/rixie/cli/commands/base.rb', line 23

def complete(input)
  []
end

#descriptionObject



15
16
17
# File 'lib/rixie/cli/commands/base.rb', line 15

def description
  raise NotImplementedError
end

#nameObject



11
12
13
# File 'lib/rixie/cli/commands/base.rb', line 11

def name
  raise NotImplementedError
end