|
7 | 7 | "os" |
8 | 8 | "strings" |
9 | 9 |
|
10 | | - tea "github.com/charmbracelet/bubbletea" |
11 | 10 | "github.com/node-pulse/agent/internal/installer" |
12 | 11 | "github.com/spf13/cobra" |
13 | 12 | ) |
@@ -188,18 +187,18 @@ func runQuickMode(existing *installer.ExistingInstall) error { |
188 | 187 | } |
189 | 188 |
|
190 | 189 | func runInteractive() error { |
191 | | - // Run TUI wizard - it handles all checks internally |
192 | | - p := tea.NewProgram( |
193 | | - newSetupTUIModel(), |
194 | | - tea.WithAltScreen(), |
195 | | - ) |
196 | | - |
197 | | - if _, err := p.Run(); err != nil { |
198 | | - fmt.Println("TUI error:") |
199 | | - return err |
200 | | - } |
201 | | - |
202 | | - return nil |
| 190 | + // Interactive mode removed in v2.0 |
| 191 | + // Users should use quick mode with --yes flag and provide configuration flags |
| 192 | + fmt.Println("❌ Interactive TUI mode has been removed in Node Pulse Agent v2.0") |
| 193 | + fmt.Println() |
| 194 | + fmt.Println("Please use quick mode instead:") |
| 195 | + fmt.Println(" pulse setup --yes --endpoint-url <url> --server-id <uuid>") |
| 196 | + fmt.Println() |
| 197 | + fmt.Println("Example:") |
| 198 | + fmt.Println(" pulse setup --yes --endpoint-url https://dashboard.nodepulse.io/metrics/prometheus --server-id 550e8400-e29b-41d4-a716-446655440000") |
| 199 | + fmt.Println() |
| 200 | + fmt.Println("Or manually create /etc/node-pulse/nodepulse.yml") |
| 201 | + return fmt.Errorf("interactive mode not available") |
203 | 202 | } |
204 | 203 |
|
205 | 204 | func performInstallation(opts installer.ConfigOptions) error { |
@@ -258,8 +257,7 @@ func performInstallation(opts installer.ConfigOptions) error { |
258 | 257 | fmt.Println() |
259 | 258 | fmt.Println("Next steps:") |
260 | 259 | fmt.Println(" 1. Start the agent: pulse start") |
261 | | - fmt.Println(" 2. Watch live metrics: pulse watch") |
262 | | - fmt.Println(" 3. Install service: sudo pulse service install") |
| 260 | + fmt.Println(" 2. Install service: sudo pulse service install") |
263 | 261 | fmt.Println() |
264 | 262 |
|
265 | 263 | // Ask about service installation |
|
0 commit comments