File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,7 @@ func main() {
44
44
}
45
45
46
46
atlasBuilder := atlas .Builder ()
47
-
48
- // init completion command indirectly
49
- // See: https://github.com/spf13/cobra/issues/1464
50
- _ , _ = atlasBuilder .ExecuteC ()
47
+ atlasBuilder .InitDefaultCompletionCmd ()
51
48
52
49
setDisableAutoGenTag (atlasBuilder )
53
50
Original file line number Diff line number Diff line change @@ -42,12 +42,8 @@ func main() {
42
42
}
43
43
44
44
mongocliBuilder := mongocli .Builder (& profile , []string {})
45
+ mongocliBuilder .InitDefaultCompletionCmd ()
45
46
removeDeprecateStringAtlasCommand (mongocliBuilder )
46
-
47
- // init completion command indirectly
48
- // See: https://github.com/spf13/cobra/issues/1464
49
- _ , _ = mongocliBuilder .ExecuteC ()
50
-
51
47
setDisableAutoGenTag (mongocliBuilder )
52
48
53
49
if err := cobra2snooty .GenTreeDocs (mongocliBuilder , "./docs/mongocli/command" ); err != nil {
You can’t perform that action at this time.
0 commit comments