Skip to content

Commit cd10286

Browse files
committed
rename list-courses -> get-courses
1 parent 8ebc0aa commit cd10286

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tmc-langs-cli/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ pub fn create_app() -> App<'static, 'static> {
238238
.required(true)
239239
.takes_value(true)))
240240

241-
.subcommand(SubCommand::with_name("list-courses")
241+
.subcommand(SubCommand::with_name("get-courses")
242242
.about("List courses.")
243243
.arg(Arg::with_name("organization")
244244
.help("Organization slug (e.g. mooc, hy).")

tmc-langs-cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ fn run() -> Result<()> {
628628
data: Some(course_details),
629629
};
630630
print_output(&output)?;
631-
} else if let Some(matches) = matches.subcommand_matches("list-courses") {
631+
} else if let Some(matches) = matches.subcommand_matches("get-courses") {
632632
let organization_slug = matches.value_of("organization").unwrap();
633633
let courses = core
634634
.list_courses(organization_slug)

0 commit comments

Comments
 (0)