aboutsummaryrefslogtreecommitdiffstats
path: root/src/actions.rs
diff options
context:
space:
mode:
authorNathan Jaremko2019-03-03 19:13:29 -0500
committerNathan Jaremko2019-03-03 19:13:29 -0500
commitc8b18e619d5d6aa61e85018603601c285448f809 (patch)
tree0a5d31173137d74692a3e2254bfaf065f06ad472 /src/actions.rs
parentdf817a266c712c2122b86551b58babd047f4d622 (diff)
downloadpodcast-c8b18e619d5d6aa61e85018603601c285448f809.tar.bz2
Fix periods in title breaking file naming
Diffstat (limited to 'src/actions.rs')
-rw-r--r--src/actions.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/actions.rs b/src/actions.rs
index c943769..847d068 100644
--- a/src/actions.rs
+++ b/src/actions.rs
@@ -138,21 +138,22 @@ pub fn remove_podcast(state: &mut State, p_search: &str) -> Result<()> {
}
pub fn print_completion(app: &mut App, arg: &str) {
+ let command_name = "podcast";
match arg {
"zsh" => {
- app.gen_completions_to("podcast", Shell::Zsh, &mut io::stdout());
+ app.gen_completions_to(command_name, Shell::Zsh, &mut io::stdout());
}
"bash" => {
- app.gen_completions_to("podcast", Shell::Bash, &mut io::stdout());
+ app.gen_completions_to(command_name, Shell::Bash, &mut io::stdout());
}
"powershell" => {
- app.gen_completions_to("podcast", Shell::PowerShell, &mut io::stdout());
+ app.gen_completions_to(command_name, Shell::PowerShell, &mut io::stdout());
}
"fish" => {
- app.gen_completions_to("podcast", Shell::Fish, &mut io::stdout());
+ app.gen_completions_to(command_name, Shell::Fish, &mut io::stdout());
}
"elvish" => {
- app.gen_completions_to("podcast", Shell::Elvish, &mut io::stdout());
+ app.gen_completions_to(command_name, Shell::Elvish, &mut io::stdout());
}
other => {
println!("Completions are not available for {}", other);