aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2023-01-11 13:36:10 +0100
committerGitHub <noreply@github.com>2023-01-11 13:36:10 +0100
commit76100380978418dbfa6fa880f05d335c9a4aafcd (patch)
treec843bf0f26bc9b3d8483895ee0d6d0fc7f568470 /commands
parent5d7a10fbb246d2bbcefe0eabc4403afe22e26124 (diff)
parent637071a84b6dd25df42b8fa79f31bc73d338c55a (diff)
downloadgit-bug-76100380978418dbfa6fa880f05d335c9a4aafcd.tar.gz
Merge pull request #988 from MichaelMure/fix-cache-test
cache: fix tests?
Diffstat (limited to 'commands')
-rw-r--r--commands/bridge/bridge_new.go2
-rw-r--r--commands/select/select.go8
2 files changed, 5 insertions, 5 deletions
diff --git a/commands/bridge/bridge_new.go b/commands/bridge/bridge_new.go
index 4cfc903d..2c51d9ef 100644
--- a/commands/bridge/bridge_new.go
+++ b/commands/bridge/bridge_new.go
@@ -33,7 +33,7 @@ func newBridgeNewCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "new",
Short: "Configure a new bridge",
- Long: ` Configure a new bridge by passing flags or/and using interactive terminal prompts. You can avoid all the terminal prompts by passing all the necessary flags to configure your bridge.`,
+ Long: "Configure a new bridge by passing flags or/and using interactive terminal prompts. You can avoid all the terminal prompts by passing all the necessary flags to configure your bridge.",
Example: `# Interactive example
[1]: github
[2]: gitlab
diff --git a/commands/select/select.go b/commands/select/select.go
index b821ba59..694d636a 100644
--- a/commands/select/select.go
+++ b/commands/select/select.go
@@ -39,10 +39,10 @@ type Resolver[CacheT cache.CacheEntity] interface {
// line. If it fails, it falls back to the select mechanism.
//
// Returns:
-// - the entity if any
-// - the new list of command line arguments with the entity prefix removed if it
-// has been used
-// - an error if the process failed
+// - the entity if any
+// - the new list of command line arguments with the entity prefix removed if it
+// has been used
+// - an error if the process failed
func Resolve[CacheT cache.CacheEntity](repo *cache.RepoCache,
typename string, namespace string, resolver Resolver[CacheT],
args []string) (CacheT, []string, error) {