tools/mmgotool: move into monorepo (#24010)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8ee38ee644
Коммит
38fd8cd6aa
21
tools/mmgotool/commands/root.go
Обычный файл
21
tools/mmgotool/commands/root.go
Обычный файл
@@ -0,0 +1,21 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
package commands
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
type Command = cobra.Command
|
||||
|
||||
func Run(args []string) error {
|
||||
RootCmd.SetArgs(args)
|
||||
return RootCmd.Execute()
|
||||
}
|
||||
|
||||
var RootCmd = &cobra.Command{
|
||||
Use: "mmgotool",
|
||||
Short: "Mattermost dev utils cli",
|
||||
Long: `Mattermost cli to help in the development process`,
|
||||
}
|
||||
Ссылка в новой задаче
Block a user