~snappy-dev/snappy/trunk-github

« back to all changes in this revision

Viewing changes to cmd/snap/cmd_find.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:
26
26
 
27
27
        "github.com/ubuntu-core/snappy/client"
28
28
        "github.com/ubuntu-core/snappy/i18n"
29
 
        "github.com/ubuntu-core/snappy/logger"
30
29
)
31
30
 
32
31
var (
41
40
}
42
41
 
43
42
func init() {
44
 
        _, err := parser.AddCommand("find", shortFindHelp, longFindHelp, &cmdFind{})
45
 
        if err != nil {
46
 
                logger.Panicf("unable to add find command: %v", err)
47
 
        }
 
43
        addCommand("find", shortFindHelp, longFindHelp, func() interface{} {
 
44
                return &cmdFind{}
 
45
        })
48
46
}
49
47
 
50
48
func (x *cmdFind) Execute([]string) error {