Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
feat: Remove Auth Command, use users command instead.
Browse files Browse the repository at this point in the history
Breaking Change - Remove the auth command to be left with the users
command alone.
  • Loading branch information
mainawycliffe committed Oct 9, 2020
1 parent 98f3a84 commit f62a82a
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 25 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
[![](https://github.com/mainawycliffe/kamanda/workflows/Go%20Linting/badge.svg)](https://github.com/mainawycliffe/kamanda/actions?query=workflow%3A%22Go+Linting%22)
[![](https://github.com/mainawycliffe/kamanda/workflows/Go%20Release/badge.svg)](https://github.com/mainawycliffe/kamanda/actions?query=workflow%3A%22Go+Release%22)

> Use `kamanda users` instead of `kamanda auth`, which is being remove after being deprecated in the previous version (v0.8.0).
Kamanda helps manage your Firebase Project from the terminal. It helps you manage
user data in Firebase Authentication. You can add, remove, update, list and search
Firebase users from your console. Functionalities for Cloud Firestore and Cloud
Expand Down
1 change: 0 additions & 1 deletion cmd/addUser.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ You can also add custom claims using --custom-claims="key:value" flag.`,
}

func init() {
authCmd.AddCommand(addUserCmd) // deprecated
usersCmd.AddCommand(addUserCmd)
addUserCmd.Flags().String("uid", "", "the uid of the user. autogenerated if absent")
addUserCmd.Flags().String("email", "", "the email of the new user (Required)")
Expand Down
1 change: 0 additions & 1 deletion cmd/addUsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ The following fields are accepted:
}

func init() {
authCmd.AddCommand(addUsersCmd)
usersCmd.AddCommand(addUsersCmd)
addUsersCmd.Flags().StringP("source", "s", "", "file with list of users to create")
if err := addUsersCmd.MarkFlagRequired("source"); err != nil {
Expand Down
16 changes: 0 additions & 16 deletions cmd/auth.go

This file was deleted.

1 change: 0 additions & 1 deletion cmd/deleteUser.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ var deleteUserCmd = &cobra.Command{
}

func init() {
authCmd.AddCommand(deleteUserCmd) // deprecated
usersCmd.AddCommand(deleteUserCmd)
}
2 changes: 1 addition & 1 deletion cmd/docsGen.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var docsGenCmd = &cobra.Command{
{"", loginCICmd},
{"", loginCmd},
{"", logoutCmd},
{"/auth", authCmd},
{"/users", usersCmd},
}

for _, v := range baseCommands {
Expand Down
1 change: 0 additions & 1 deletion cmd/findUser.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ To find user by email or by phone use "find by-email" or "find by-phone"`,
}

func init() {
authCmd.AddCommand(findUserCmd) // deprecated
usersCmd.AddCommand(findUserCmd)
findUserCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}
4 changes: 0 additions & 4 deletions cmd/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ kamanda users -output yaml`,
}

func init() {
// This is Deprecated and will be removed in future
authCmd.AddCommand(usersCmd)
// This allows both kamanda auth users and kamanda users to be used at the
// same time.
rootCmd.AddCommand(usersCmd)
usersCmd.Flags().StringP("nextPageToken", "n", "", "Fetch next set of results")
usersCmd.PersistentFlags().BoolP("interactive", "i", false, "Show Interactive UI for Users")
Expand Down

0 comments on commit f62a82a

Please sign in to comment.