Skip to content

Commit fe2b918

Browse files
committed
feat: complete rewrite, forward prometheus
1 parent 12401e1 commit fe2b918

File tree

26 files changed

+395
-3707
lines changed

26 files changed

+395
-3707
lines changed

cmd/common.go

Lines changed: 0 additions & 6 deletions
This file was deleted.

cmd/setup.go

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"os"
88
"strings"
99

10-
tea "github.com/charmbracelet/bubbletea"
1110
"github.com/node-pulse/agent/internal/installer"
1211
"github.com/spf13/cobra"
1312
)
@@ -188,18 +187,18 @@ func runQuickMode(existing *installer.ExistingInstall) error {
188187
}
189188

190189
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")
203202
}
204203

205204
func performInstallation(opts installer.ConfigOptions) error {
@@ -258,8 +257,7 @@ func performInstallation(opts installer.ConfigOptions) error {
258257
fmt.Println()
259258
fmt.Println("Next steps:")
260259
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")
263261
fmt.Println()
264262

265263
// Ask about service installation

0 commit comments

Comments
 (0)