From dc7cad1a040ee6be6a7cdde2a5303e4158b710a9 Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Mon, 22 Dec 2025 14:09:25 -0800 Subject: [PATCH] feat: Enable command prefix matching for all gt subcommands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allows shorthand like 'gt ref at' for 'gt refinery attach'. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- internal/cmd/root.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/cmd/root.go b/internal/cmd/root.go index d119bde0..b45a47f0 100644 --- a/internal/cmd/root.go +++ b/internal/cmd/root.go @@ -33,6 +33,9 @@ func Execute() { } func init() { + // Enable prefix matching for subcommands (e.g., "gt ref at" -> "gt refinery attach") + cobra.EnablePrefixMatching = true + // Global flags can be added here // rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file") }