Class: Textus::Surfaces::CLI::Verb::Init

Inherits:
Textus::Surfaces::CLI::Verb show all
Defined in:
lib/textus/surfaces/cli/verb/init.rb

Instance Attribute Summary

Attributes inherited from Textus::Surfaces::CLI::Verb

#positional, #stdin

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Textus::Surfaces::CLI::Verb

command_name, descendants, #emit, #gate_dispatch, inherited, #initialize, option, options, parent_group, #parse, #resolved_role

Constructor Details

This class inherits a constructor from Textus::Surfaces::CLI::Verb

Class Method Details

.needs_store?Boolean

Returns:

  • (Boolean)


10
# File 'lib/textus/surfaces/cli/verb/init.rb', line 10

def self.needs_store? = false

Instance Method Details

#call(_store) ⇒ Object



12
13
14
15
# File 'lib/textus/surfaces/cli/verb/init.rb', line 12

def call(_store)
  target = File.join(@cwd, ".textus")
  emit(Textus::Init.run(target, with_agent: !!with_agent))
end