Adds push, list, get, delete, and login subcommands backed by an HTTP API client, plus an MCP server for tool-based access to the document queue. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
30 lines
461 B
Go
30 lines
461 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var version = "dev"
|
|
|
|
func main() {
|
|
root := &cobra.Command{
|
|
Use: "mcq",
|
|
Short: "Metacircular Document Queue",
|
|
Version: version,
|
|
}
|
|
|
|
root.AddCommand(serverCmd())
|
|
root.AddCommand(pushCmd())
|
|
root.AddCommand(listCmd())
|
|
root.AddCommand(getCmd())
|
|
root.AddCommand(deleteCmd())
|
|
root.AddCommand(loginCmd())
|
|
root.AddCommand(mcpCmd())
|
|
|
|
if err := root.Execute(); err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|