@@ -23,8 +23,6 @@ struct Cli {
2323enum Commands {
2424 /// Set a JSON RPC API URL
2525 SetServer ( command:: setup:: SetServerArgs ) ,
26- /// Try to login and save password for future calls, if successful
27- Login ( command:: setup:: LoginArgs ) ,
2826 /// Show all locally cached data
2927 State ( command:: setup:: StateArgs ) ,
3028
@@ -57,6 +55,8 @@ enum Commands {
5755 /// Generate category tags for a specific element id range
5856 GenerateElementCategories ( GenerateElementCategoriesArgs ) ,
5957
58+ /// Login with your username and password and get an auth token
59+ Login ( command:: admin:: LoginArgs ) ,
6060 /// Create a new admin user. New admins have no permissions by default, use add-admin-action to allow certain acitons
6161 AddAdmin ( command:: admin:: AddAdminArgs ) ,
6262 /// Change admin password. Knowledge of an old password is required
@@ -110,7 +110,7 @@ fn main() -> Result<()> {
110110 }
111111
112112 if let Some ( Commands :: Login ( args) ) = & cli. command {
113- return command:: setup :: login ( args) ;
113+ return command:: admin :: login ( args) ;
114114 }
115115
116116 if let Some ( Commands :: State ( args) ) = & cli. command {
0 commit comments