Update repo_list.go

Signed-off-by: pipi1111111 <154908679+pipi1111111@users.noreply.github.com>
pull/30608/head
pipi1111111 7 months ago committed by GitHub
parent a43b7a2d42
commit 51cd5fcdae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -37,6 +37,7 @@ func newRepoListCmd(out io.Writer) *cobra.Command {
Args: require.NoArgs, Args: require.NoArgs,
ValidArgsFunction: noMoreArgsCompFunc, ValidArgsFunction: noMoreArgsCompFunc,
RunE: func(_ *cobra.Command, _ []string) error { RunE: func(_ *cobra.Command, _ []string) error {
f, _ := repo.LoadFile(settings.RepositoryConfig)
if len(f.Repositories) == 0 { if len(f.Repositories) == 0 {
switch outfmt { switch outfmt {
case output.Table: case output.Table:

Loading…
Cancel
Save