forked from vmware-archive/fly
/
fly.go
43 lines (29 loc) · 2.63 KB
/
fly.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package commands
import "github.com/concourse/fly/rc"
type FlyCommand struct {
Target rc.TargetName `short:"t" long:"target" description:"Concourse target name"`
Version func() `short:"v" long:"version" description:"Print the version of Fly and exit"`
Login LoginCommand `command:"login" alias:"l" description:"Authenticate with the target"`
Sync SyncCommand `command:"sync" alias:"s" description:"Download and replace the current fly from the target"`
SetTeam SetTeamCommand `hidden:"yes" command:"set-team" alias:"st" description:"Create or modify a team to have the given credentials"`
Checklist ChecklistCommand `command:"checklist" alias:"cl" description:"Print a Checkfile of the given pipeline"`
Execute ExecuteCommand `command:"execute" alias:"e" description:"Execute a one-off build using local bits"`
Watch WatchCommand `command:"watch" alias:"w" description:"Stream a build's output"`
Containers ContainersCommand `command:"containers" alias:"cs" description:"Print the active containers"`
Hijack HijackCommand `command:"hijack" alias:"intercept" alias:"i" description:"Execute a command in a container"`
PauseJob PauseJobCommand `command:"pause-job" alias:"pj" description:"Pause a job"`
UnpauseJob UnpauseJobCommand `command:"unpause-job" alias:"uj" description:"Unpause a job"`
Pipelines PipelinesCommand `command:"pipelines" alias:"ps" description:"List the configured pipelines"`
DestroyPipeline DestroyPipelineCommand `command:"destroy-pipeline" alias:"dp" description:"Destroy a pipeline"`
GetPipeline GetPipelineCommand `command:"get-pipeline" alias:"gp" description:"Get a pipeline's current configuration"`
SetPipeline SetPipelineCommand `command:"set-pipeline" alias:"sp" description:"Create or update a pipeline's configuration"`
PausePipeline PausePipelineCommand `command:"pause-pipeline" alias:"pp" description:"Pause a pipeline"`
UnpausePipeline UnpausePipelineCommand `command:"unpause-pipeline" alias:"up" description:"Un-pause a pipeline"`
RenamePipeline RenamePipelineCommand `command:"rename-pipeline" alias:"rp" description:"Rename a pipeline"`
Builds BuildsCommand `command:"builds" alias:"bs" description:"List builds data"`
AbortBuild AbortBuildCommand `command:"abort-build" alias:"ab" description:"Abort a build"`
TriggerJob TriggerJobCommand `command:"trigger-job" alias:"tj" description:"Start a job in a pipeline"`
Volumes VolumesCommand `command:"volumes" alias:"vs" description:"List the active volumes"`
Workers WorkersCommand `command:"workers" alias:"ws" description:"List the registered workers"`
}
var Fly FlyCommand