diff --git a/internal/cmd/account-add.go b/internal/cmd/account-add.go deleted file mode 100644 index ec32e50..0000000 --- a/internal/cmd/account-add.go +++ /dev/null @@ -1,13 +0,0 @@ -package cmd - -import "github.com/spf13/cobra" - -func accountAddCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: "add username", - Short: "Create new account", - Args: cobra.ExactArgs(1), - } - - return cmd -} diff --git a/internal/cmd/account-delete.go b/internal/cmd/account-delete.go deleted file mode 100644 index f035935..0000000 --- a/internal/cmd/account-delete.go +++ /dev/null @@ -1,17 +0,0 @@ -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 -} diff --git a/internal/cmd/account-print.go b/internal/cmd/account-print.go deleted file mode 100644 index 9c00437..0000000 --- a/internal/cmd/account-print.go +++ /dev/null @@ -1,16 +0,0 @@ -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 -} diff --git a/internal/cmd/account.go b/internal/cmd/account.go deleted file mode 100644 index ef9e509..0000000 --- a/internal/cmd/account.go +++ /dev/null @@ -1,20 +0,0 @@ -package cmd - -import ( - "github.com/spf13/cobra" -) - -func accountCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: "account", - Short: "Manage account for accessing web interface", - } - - cmd.AddCommand( - accountAddCmd(), - accountPrintCmd(), - accountDeleteCmd(), - ) - - return cmd -} diff --git a/internal/cmd/root.go b/internal/cmd/root.go index e10a3bb..61b945d 100644 --- a/internal/cmd/root.go +++ b/internal/cmd/root.go @@ -35,7 +35,6 @@ func ShioriCmd() *cobra.Command { exportCmd(), pocketCmd(), serveCmd(), - accountCmd(), ) return rootCmd