Resolve "Option -c for exercise subcommand clones assignment"
Compare changes
- orestis.malaspin authored
@@ -14,12 +14,12 @@ class ExerciseCreateCommand extends CommanderCommand {
@@ -14,12 +14,12 @@ class ExerciseCreateCommand extends CommanderCommand {
.requiredOption('-a, --assignment <value>', 'assignment source (Dojo assignment ID, Dojo assignment name or Gitlab assignment URL)')
.option('-i, --members_id <ids...>', 'list of gitlab members ids (group\'s student) to add to the repository')
.option('-u, --members_username <usernames...>', 'list of gitlab members username (group\'s student) to add to the repository')
.option('-c, --clone [string]', 'automatically clone the repository (SSH required) in the specified directory (this will create a subdirectory with the assignment name)')
protected async commandAction(options: { assignment: string, members_id?: Array<number>, members_username?: Array<string>, clone?: string | boolean }): Promise<void> {
@@ -31,36 +31,36 @@ class ExerciseCreateCommand extends CommanderCommand {
@@ -31,36 +31,36 @@ class ExerciseCreateCommand extends CommanderCommand {
@@ -72,27 +72,27 @@ class ExerciseCreateCommand extends CommanderCommand {
@@ -72,27 +72,27 @@ class ExerciseCreateCommand extends CommanderCommand {
await GitlabManager.cloneRepository(options.clone, exercise.gitlabCreationInfo.ssh_url_to_repo, `DojoExercise - ${exercise.assignmentName}`, true, 0);