shiori/internal/cmd/account-print.go

17 lines
319 B
Go
Raw Normal View History

2019-05-21 11:31:40 +08:00
package cmd
import "github.com/spf13/cobra"
func accountPrintCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "print",
Short: "Print the saved accounts",
Args: cobra.NoArgs,
Aliases: []string{"list", "ls"},
}
cmd.Flags().StringP("search", "s", "", "Search accounts by username")
return cmd
}