File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ void ClientCommands::sync()
112
112
113
113
void ClientCommands::info ( bool isJsonFormat )
114
114
{
115
- Q_ASSERT ( isAuthorized () );
116
115
LocalProject lp = mLocalProjectsManager .projectFromDirectory ( QDir::currentPath () );
117
116
if ( !lp.isValid () )
118
117
throw QString ( " no mergin project in the current directory" );
Original file line number Diff line number Diff line change @@ -172,26 +172,24 @@ int main( int argc, char *argv[] )
172
172
Args args = parseArgs ();
173
173
ClientCommands cmd ( args.dataDir , args.timeout );
174
174
175
- cmd.login ( args.url ,
176
- args.user ,
177
- args.pass
178
- );
179
-
180
-
181
175
if ( args.command == " create" )
182
176
{
177
+ cmd.login ( args.url , args.user , args.pass );
183
178
cmd.create ( args.projectNamespace , args.projectName );
184
179
}
185
180
else if ( args.command == " remove" )
186
181
{
182
+ cmd.login ( args.url , args.user , args.pass );
187
183
cmd.remove ( args.projectNamespace , args.projectName );
188
184
}
189
185
else if ( args.command == " download" )
190
186
{
187
+ cmd.login ( args.url , args.user , args.pass );
191
188
cmd.download ( args.projectNamespace , args.projectName );
192
189
}
193
190
else if ( args.command == " sync" )
194
191
{
192
+ cmd.login ( args.url , args.user , args.pass );
195
193
cmd.sync ();
196
194
}
197
195
else if ( args.command == " info" )
You can’t perform that action at this time.
0 commit comments