Class: Jank::GoCommand

Inherits:
Command show all
Defined in:
lib/go_command.rb

Instance Method Summary collapse

Methods inherited from Command

#dispatch, #initialize

Constructor Details

This class inherits a constructor from Jank::Command

Instance Method Details

#build_commandObject



15
16
17
# File 'lib/go_command.rb', line 15

def build_command
  run_go_with_janked_package
end

#clean_commandObject



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

def clean_command
  run_go_with_janked_package
end

#env_commandObject



23
24
25
# File 'lib/go_command.rb', line 23

def env_command
  run_go
end

#fix_commandObject



27
28
29
# File 'lib/go_command.rb', line 27

def fix_command
  run_go_with_janked_package
end

#fmt_commandObject



31
32
33
# File 'lib/go_command.rb', line 31

def fmt_command
  run_go_with_janked_package
end

#generate_commandObject



39
40
41
# File 'lib/go_command.rb', line 39

def generate_command
  run_go_with_janked_package
end

#get_commandObject



43
44
45
# File 'lib/go_command.rb', line 43

def get_command
  run_go
end

#helpObject



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

def help
  run_go
end

#install_commandObject



47
48
49
# File 'lib/go_command.rb', line 47

def install_command
  run_go_with_janked_package
end

#list_commandObject



51
52
53
54
# File 'lib/go_command.rb', line 51

def list_command
  @janker.link
  run_go_with_janked_package
end

#run_commandObject



56
57
58
# File 'lib/go_command.rb', line 56

def run_command
  run_go
end

#run_goObject



5
6
7
8
# File 'lib/go_command.rb', line 5

def run_go
  @janker.link
  @exec.go(@args)
end

#run_go_with_janked_packageObject



10
11
12
13
# File 'lib/go_command.rb', line 10

def run_go_with_janked_package
  @janker.link
  @exec.go( @exec.apply_package(@args) )
end

#test_commandObject



60
61
62
# File 'lib/go_command.rb', line 60

def test_command
  run_go_with_janked_package
end

#tool_commandObject



64
65
66
# File 'lib/go_command.rb', line 64

def tool_command
  run_go
end

#version_commandObject



68
69
70
# File 'lib/go_command.rb', line 68

def version_command
  run_go
end

#vet_commandObject



72
73
74
# File 'lib/go_command.rb', line 72

def vet_command
  run_go_with_janked_package
end