~snappy-dev/snappy/trunk-github

« back to all changes in this revision

Viewing changes to cmd/snap/cmd_remove_cap.go

  • Committer: Zygmunt Krynicki
  • Date: 2016-02-05 11:26:28 UTC
  • mfrom: (1131)
  • mto: This revision was merged to the branch mainline in revision 1137.
  • Revision ID: git-v1:2f4cd12f5eb1dde16f4e7b59561026d0d125f377
Merge branch 'master' of github.com:ubuntu-core/snappy into cmd-output-testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import (
23
23
        "github.com/ubuntu-core/snappy/client"
24
24
        "github.com/ubuntu-core/snappy/i18n"
25
 
        "github.com/ubuntu-core/snappy/logger"
26
25
)
27
26
 
28
27
type removeCapOptions struct {
39
38
)
40
39
 
41
40
func init() {
42
 
        _, err := parser.AddCommand("remove-cap", shortRemoveCapHelp, longRemoveCapHelp, &cmdRemoveCap{})
43
 
        if err != nil {
44
 
                logger.Panicf("unable to add remove-cap command: %v", err)
45
 
        }
 
41
        addCommand("remove-cap", shortRemoveCapHelp, longRemoveCapHelp, func() interface{} {
 
42
                return &cmdRemoveCap{}
 
43
        })
46
44
}
47
45
 
48
46
func (x *cmdRemoveCap) Execute(args []string) error {