Skip to content

Commit

Permalink
[#854] config: fix: BasePath config is not working (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
yottahmd authored Feb 24, 2025
1 parent 7bbb13d commit be37a0b
Show file tree
Hide file tree
Showing 56 changed files with 2,319 additions and 2,170 deletions.
55 changes: 0 additions & 55 deletions cmd/cmd_test.go

This file was deleted.

88 changes: 0 additions & 88 deletions cmd/config.go

This file was deleted.

34 changes: 0 additions & 34 deletions cmd/dry_test.go

This file was deleted.

46 changes: 23 additions & 23 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@ import (
"os"

"github.com/dagu-org/dagu/internal/build"
"github.com/dagu-org/dagu/internal/cmd"
"github.com/spf13/cobra"
)

var (
// version is set at build time
version = "0.0.0"
rootCmd = &cobra.Command{
Use: build.Slug,
Short: "YAML-based DAG scheduling tool.",
Long: `YAML-based DAG scheduling tool.`,
}
)
var rootCmd = &cobra.Command{
Use: build.Slug,
Short: "Dagu is a compact, portable workflow engine",
Long: `Dagu is a compact, portable workflow engine.
It provides a declarative model for orchestrating command execution across
diverse environments, including shell scripts, Python commands, containerized
operations, or remote commands.
`,
}

func main() {
if err := rootCmd.Execute(); err != nil {
Expand All @@ -24,20 +26,18 @@ func main() {
}

func init() {
build.Version = version
rootCmd.AddCommand(cmd.CmdStart())
rootCmd.AddCommand(cmd.CmdStop())
rootCmd.AddCommand(cmd.CmdRestart())
rootCmd.AddCommand(cmd.CmdDry())
rootCmd.AddCommand(cmd.CmdStatus())
rootCmd.AddCommand(cmd.CmdVersion())
rootCmd.AddCommand(cmd.CmdServer())
rootCmd.AddCommand(cmd.CmdScheduler())
rootCmd.AddCommand(cmd.CmdRetry())
rootCmd.AddCommand(cmd.CmdStartAll())

registerCommands()
build.Version = version
}

func registerCommands() {
rootCmd.AddCommand(startCmd())
rootCmd.AddCommand(stopCmd())
rootCmd.AddCommand(restartCmd())
rootCmd.AddCommand(dryCmd())
rootCmd.AddCommand(statusCmd())
rootCmd.AddCommand(versionCmd())
rootCmd.AddCommand(serverCmd())
rootCmd.AddCommand(schedulerCmd())
rootCmd.AddCommand(retryCmd())
rootCmd.AddCommand(startAllCmd())
}
var version = "0.0.0"
51 changes: 0 additions & 51 deletions cmd/scheduler.go

This file was deleted.

72 changes: 0 additions & 72 deletions cmd/server.go

This file was deleted.

Loading

0 comments on commit be37a0b

Please sign in to comment.