2bb9d18f57
- Add root command with Cobra framework - Implement shell completion support for bash/zsh/fish/powershell - Add version command - Add configuration initialization on startup via PersistentPreRunE - Include verbose (-v/-vv) and debug flags - Set up proper error handling and exit codes Co-Authored-By: Claude <noreply@anthropic.com>
18 lines
201 B
Go
18 lines
201 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
var (
|
|
version = "dev"
|
|
buildTime = "unknown"
|
|
)
|
|
|
|
func main() {
|
|
if err := Execute(); err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
|
|
os.Exit(1)
|
|
}
|
|
} |