Class: Rubycli::CommandLine::Options

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubycli/command_line.rb

Overview

Flags collected before the target path; forwarded to Rubycli::Runner.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#check_modeObject

Returns the value of attribute check_mode

Returns:

  • (Object)

    the current value of check_mode



35
36
37
# File 'lib/rubycli/command_line.rb', line 35

def check_mode
  @check_mode
end

#constant_modeObject

Returns the value of attribute constant_mode

Returns:

  • (Object)

    the current value of constant_mode



35
36
37
# File 'lib/rubycli/command_line.rb', line 35

def constant_mode
  @constant_mode
end

#eval_laxObject

Returns the value of attribute eval_lax

Returns:

  • (Object)

    the current value of eval_lax



35
36
37
# File 'lib/rubycli/command_line.rb', line 35

def eval_lax
  @eval_lax
end

#eval_modeObject

Returns the value of attribute eval_mode

Returns:

  • (Object)

    the current value of eval_mode



35
36
37
# File 'lib/rubycli/command_line.rb', line 35

def eval_mode
  @eval_mode
end

#json_modeObject

Returns the value of attribute json_mode

Returns:

  • (Object)

    the current value of json_mode



35
36
37
# File 'lib/rubycli/command_line.rb', line 35

def json_mode
  @json_mode
end

#new_argsObject

Returns the value of attribute new_args

Returns:

  • (Object)

    the current value of new_args



35
36
37
# File 'lib/rubycli/command_line.rb', line 35

def new_args
  @new_args
end

#new_flagObject

Returns the value of attribute new_flag

Returns:

  • (Object)

    the current value of new_flag



35
36
37
# File 'lib/rubycli/command_line.rb', line 35

def new_flag
  @new_flag
end

#pre_scriptsObject

Returns the value of attribute pre_scripts

Returns:

  • (Object)

    the current value of pre_scripts



35
36
37
# File 'lib/rubycli/command_line.rb', line 35

def pre_scripts
  @pre_scripts
end

Class Method Details

.defaultsObject



46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/rubycli/command_line.rb', line 46

def self.defaults
  new(
    new_flag: false,
    new_args: nil,
    json_mode: false,
    eval_mode: false,
    eval_lax: false,
    constant_mode: nil,
    check_mode: false,
    pre_scripts: []
  )
end