Move from --gitlab flags to global --remote flags
This commit is contained in:
@ -5,6 +5,7 @@ import (
|
||||
|
||||
"github.com/pterm/pterm"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
// listCmd represents the list command
|
||||
@ -18,12 +19,13 @@ var aliasListCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
func runListAliasCmd(cmd *cobra.Command, args []string) {
|
||||
remotes := viper.GetStringSlice("remote")
|
||||
fmt.Println()
|
||||
pterm.DefaultBox.
|
||||
WithLeftPadding(5).WithRightPadding(5).
|
||||
WithBoxStyle(&pterm.Style{pterm.FgLightBlue}).
|
||||
WithTitle(pterm.Bold.Sprint(pterm.LightGreen("Aliases by Project"))).
|
||||
Print("\n" + projectCache.AliasesByProjectString())
|
||||
Print("\n" + projectCache.AliasesByProjectString(remotes...))
|
||||
fmt.Print("\n\n")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user