mirror of
https://github.com/go-shiori/shiori.git
synced 2025-02-22 15:06:04 +08:00
18 lines
422 B
Go
18 lines
422 B
Go
|
package cmd
|
||
|
|
||
|
import "github.com/spf13/cobra"
|
||
|
|
||
|
func accountDeleteCmd() *cobra.Command {
|
||
|
cmd := &cobra.Command{
|
||
|
Use: "delete [usernames]",
|
||
|
Short: "Delete the saved accounts",
|
||
|
Long: "Delete accounts. " +
|
||
|
"Accepts space-separated list of usernames. " +
|
||
|
"If no arguments, all records will be deleted.",
|
||
|
}
|
||
|
|
||
|
cmd.Flags().BoolP("yes", "y", false, "Skip confirmation prompt and delete ALL accounts")
|
||
|
|
||
|
return cmd
|
||
|
}
|