Skip to content

Commit 7f6d687

Browse files
committed
Isolate config command
1 parent d933cd9 commit 7f6d687

File tree

5 files changed

+249
-336
lines changed

5 files changed

+249
-336
lines changed

command/config.go

Lines changed: 0 additions & 110 deletions
This file was deleted.

command/config_test.go

Lines changed: 0 additions & 225 deletions
This file was deleted.

command/root.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"github.com/cli/cli/internal/config"
1818
"github.com/cli/cli/internal/ghinstance"
1919
"github.com/cli/cli/internal/run"
20+
configCmd "github.com/cli/cli/pkg/cmd/config"
2021
"github.com/cli/cli/pkg/cmd/factory"
2122
"github.com/cli/cli/pkg/cmd/root"
2223
"github.com/cli/cli/utils"
@@ -44,7 +45,7 @@ func init() {
4445
RootCmd = root.NewCmdRoot(cmdFactory, Version, BuildDate)
4546
RootCmd.AddCommand(aliasCmd)
4647
RootCmd.AddCommand(root.NewCmdCompletion(cmdFactory.IOStreams))
47-
RootCmd.AddCommand(configCmd)
48+
RootCmd.AddCommand(configCmd.NewCmdConfig(cmdFactory))
4849
}
4950

5051
// overridden in tests

0 commit comments

Comments
 (0)