Skip to content

Commit

Permalink
move force-unlock to plumbing
Browse files Browse the repository at this point in the history
shouldn't be listed as a common command
  • Loading branch information
jbardin committed Apr 1, 2017
1 parent 305ef43 commit 9e9d0b1
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ func init() {
// that to match.

PlumbingCommands = map[string]struct{}{
"state": struct{}{}, // includes all subcommands
"debug": struct{}{}, // includes all subcommands
"state": struct{}{}, // includes all subcommands
"debug": struct{}{}, // includes all subcommands
"force-unlock": struct{}{},
}

Commands = map[string]cli.CommandFactory{
Expand Down Expand Up @@ -105,12 +106,6 @@ func init() {
}, nil
},

"force-unlock": func() (cli.Command, error) {
return &command.UnlockCommand{
Meta: meta,
}, nil
},

"get": func() (cli.Command, error) {
return &command.GetCommand{
Meta: meta,
Expand Down Expand Up @@ -215,6 +210,12 @@ func init() {
}, nil
},

"force-unlock": func() (cli.Command, error) {
return &command.UnlockCommand{
Meta: meta,
}, nil
},

"state": func() (cli.Command, error) {
return &command.StateCommand{}, nil
},
Expand Down

0 comments on commit 9e9d0b1

Please sign in to comment.