Add check/format command

This commit is contained in:
世界
2022-07-04 16:59:27 +08:00
parent c33a079c88
commit bcf0bb26a7
4 changed files with 99 additions and 1 deletions

View File

@@ -28,6 +28,8 @@ func main() {
command.PersistentFlags().StringVarP(&workingDir, "directory", "D", "", "set working directory")
command.PersistentFlags().BoolVarP(&disableColor, "disable-color", "", false, "disable color output")
command.AddCommand(commandRun)
command.AddCommand(commandCheck)
command.AddCommand(commandFormat)
if err := command.Execute(); err != nil {
logrus.Fatal(err)
}