Files
dagu/internal/cmd/version.go
T
Yota Hamada b581118067 chore: add GPL-3.0 license headers to source files
Add copyright and SPDX license identifier headers to all Go source
files, test files, shell scripts, and proto files.
2026-03-09 18:38:11 +09:00

26 lines
648 B
Go

// Copyright (C) 2026 Yota Hamada
// SPDX-License-Identifier: GPL-3.0-or-later
package cmd
import (
"fmt"
"github.com/dagu-org/dagu/internal/cmn/config"
"github.com/spf13/cobra"
)
func Version() *cobra.Command {
return &cobra.Command{
Use: "version",
Short: "Display the Dagu version information",
Long: `Print the current version number and build details of the Dagu executable.
This command shows the version information that can be useful for troubleshooting,
reporting issues, or verifying that you're running the expected version of Dagu.`,
Run: func(_ *cobra.Command, _ []string) {
fmt.Println(config.Version)
},
}
}