diff options
| author | adamdottv <[email protected]> | 2025-06-02 13:33:05 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-06-02 13:33:05 -0500 |
| commit | ca87b2806f4a021f78b65372a5579920c6b7619d (patch) | |
| tree | 7898a41cf0115e37ab799185c831bf193bcab262 /packages/tui/cmd | |
| parent | 2958c6b53c293d82803b52aec5573dac24c3a9cb (diff) | |
| download | opencode-ca87b2806f4a021f78b65372a5579920c6b7619d.tar.gz opencode-ca87b2806f4a021f78b65372a5579920c6b7619d.zip | |
wip: refactoring tui
Diffstat (limited to 'packages/tui/cmd')
| -rw-r--r-- | packages/tui/cmd/root.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/packages/tui/cmd/root.go b/packages/tui/cmd/root.go index 6f0c00f30..d952fc3a3 100644 --- a/packages/tui/cmd/root.go +++ b/packages/tui/cmd/root.go @@ -16,7 +16,6 @@ import ( "github.com/sst/opencode/internal/pubsub" "github.com/sst/opencode/internal/tui" "github.com/sst/opencode/internal/tui/app" - "github.com/sst/opencode/internal/version" ) var rootCmd = &cobra.Command{ @@ -26,16 +25,6 @@ var rootCmd = &cobra.Command{ It provides an interactive chat interface with AI capabilities, code analysis, and LSP integration to assist developers in writing, debugging, and understanding code directly from the terminal.`, RunE: func(cmd *cobra.Command, args []string) error { - // If the help flag is set, show the help message - if cmd.Flag("help").Changed { - cmd.Help() - return nil - } - if cmd.Flag("version").Changed { - fmt.Println(version.Version) - return nil - } - // Setup logging // file, err := os.OpenFile("debug.log", os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0644) // if err != nil { |
