feat: add --version flag to CLI
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,12 +14,16 @@ import (
|
||||
"git.t-juice.club/torjus/labmcp/internal/nixos"
|
||||
)
|
||||
|
||||
const defaultDatabase = "sqlite://nixos-options.db"
|
||||
const (
|
||||
defaultDatabase = "sqlite://nixos-options.db"
|
||||
version = "0.1.0"
|
||||
)
|
||||
|
||||
func main() {
|
||||
app := &cli.App{
|
||||
Name: "nixos-options",
|
||||
Usage: "MCP server for NixOS options search and query",
|
||||
Name: "nixos-options",
|
||||
Usage: "MCP server for NixOS options search and query",
|
||||
Version: version,
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "database",
|
||||
|
||||
Reference in New Issue
Block a user