cmd/search.go
changeset 13 f862af8faf17
parent 0 5abace724584
child 45 b58a7ea1aeb2
equal deleted inserted replaced
12:e94c9ed9b1c8 13:f862af8faf17
    12 	"github.com/spf13/cobra"
    12 	"github.com/spf13/cobra"
    13 )
    13 )
    14 
    14 
    15 var searchOpts struct {
    15 var searchOpts struct {
    16 	resolve bool
    16 	resolve bool
       
    17 	//limit   uint
    17 }
    18 }
    18 
    19 
    19 // searchCmd represents the search command
    20 // searchCmd represents the search command
    20 var searchCmd = &cobra.Command{
    21 var searchCmd = &cobra.Command{
    21 	Use:   "search [--resolve] STRING",
    22 	Use:   "search [--resolve] STRING",
    26 
    27 
    27 func init() {
    28 func init() {
    28 	RootCmd.AddCommand(searchCmd)
    29 	RootCmd.AddCommand(searchCmd)
    29 
    30 
    30 	searchCmd.Flags().BoolVar(&searchOpts.resolve, "resolve", false, "Resolve non-local accounts")
    31 	searchCmd.Flags().BoolVar(&searchOpts.resolve, "resolve", false, "Resolve non-local accounts")
       
    32 	//searchCmd.Flags().UintVarP(&searchOpts.limit, "limit", "l", 0, "Limit number of results")
    31 }
    33 }
    32 
    34 
    33 func searchRunE(cmd *cobra.Command, args []string) error {
    35 func searchRunE(cmd *cobra.Command, args []string) error {
    34 	opt := searchOpts
    36 	opt := searchOpts
    35 
    37