From 0b1396ad7962073fa25615bf03c43b53eddc2d56 Mon Sep 17 00:00:00 2001 From: Marcelo dos Santos Mafra Date: Wed, 3 Mar 2021 19:17:11 -0300 Subject: [PATCH] Change "install" to "activate" to make omf theme doc clearer (#816) * As omf theme won't install a theme per se, changing "install" to "activate" seems clearer. So omf theme will list installed and available themes, activate a installed one, but won't install one. * As omf theme won't install a theme per se, changing "install" to "activate" seems clearer. So omf theme will list installed and available themes, activate a installed one, but won't install one. --- docs/cli/omf.adoc | 2 +- docs/cli/theme.adoc | 6 +++--- pkg/omf/completions/omf.fish | 2 +- pkg/omf/spec/basic_spec.fish | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/cli/omf.adoc b/docs/cli/omf.adoc index d789077..27d4825 100644 --- a/docs/cli/omf.adoc +++ b/docs/cli/omf.adoc @@ -20,7 +20,7 @@ Provides options to list, download and remove packages, update the framework, cr <>:: Remove a package. <>:: Manage package repositories. <>:: Search for a package or theme. -<>:: Install and list themes. +<>:: Activate and list available themes. <>:: Update Oh My Fish. <>:: Display version and exit. diff --git a/docs/cli/theme.adoc b/docs/cli/theme.adoc index 3d96f13..54d2ad2 100644 --- a/docs/cli/theme.adoc +++ b/docs/cli/theme.adoc @@ -1,8 +1,8 @@ -Install and list themes. +Activate and list available themes. == USAGE - omf theme List available themes to install - omf theme Install theme by name + omf theme List available and installed themes + omf theme Activate theme by name == EXAMPLES omf theme diff --git a/pkg/omf/completions/omf.fish b/pkg/omf/completions/omf.fish index abfe4d4..c3d8038 100644 --- a/pkg/omf/completions/omf.fish +++ b/pkg/omf/completions/omf.fish @@ -45,6 +45,6 @@ complete -c omf -f -n "__fish_seen_subcommand_from repo repositories; and __omf_ complete -c omf -f -n "__fish_seen_subcommand_from repo repositories; and __omf_assert_args_count 1" -a list -d "List installed repositories" complete -c omf -f -n "__fish_seen_subcommand_from repo repositories; and __omf_assert_args_count 1" -a remove -d "Remove a package repository" complete -c omf -f -a search -n "__fish_use_subcommand" -d "Search for a plugin or theme" -complete -c omf -f -a theme -n "__fish_use_subcommand" -d "Install and list themes" +complete -c omf -f -a theme -n "__fish_use_subcommand" -d "Activate and list available themes" complete -c omf -f -a update -n "__fish_use_subcommand" -d "Update Oh My Fish" complete -c omf -f -a version -n "__fish_use_subcommand" -d "Display version" diff --git a/pkg/omf/spec/basic_spec.fish b/pkg/omf/spec/basic_spec.fish index 2090086..e5d393c 100644 --- a/pkg/omf/spec/basic_spec.fish +++ b/pkg/omf/spec/basic_spec.fish @@ -18,7 +18,7 @@ function describe_basic_tests echo $output | grep -Eq "remove.+Remove a package" echo $output | grep -Eq "repositories.+Manage package repositories" echo $output | grep -Eq "search.+Search for a package or theme" - echo $output | grep -Eq "theme.+Install and list themes" + echo $output | grep -Eq "theme.+Activate and list available themes" echo $output | grep -Eq "update.+Update Oh My Fish" echo $output | grep -Eq "version.+Display version and exit" assert 0 = $status