Skip to content

Commit 00be7c9

Browse files
authored
Better messaging for installs (#61)
1 parent d432d1d commit 00be7c9

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

cmd/install.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,17 @@ source "%s"
165165
return fmt.Errorf("failed to write to shell config file: %w", err)
166166
}
167167

168-
cmd.Println(successStyle.Render(fmt.Sprintf("Added Major CLI configuration to %s", configFile)))
169-
cmd.Println("Please restart your shell or run 'source " + configFile + "' to start using 'major'")
168+
boxStyle := lipgloss.NewStyle().
169+
Border(lipgloss.RoundedBorder()).
170+
BorderForeground(lipgloss.Color("#00FF00")).
171+
Padding(1, 2).
172+
MarginTop(1)
173+
174+
msg := fmt.Sprintf("%s\n\nPlease restart your shell or run:\n\n %s\n\nto start using 'major'",
175+
successStyle.Render(fmt.Sprintf("Added Major CLI configuration to %s", configFile)),
176+
lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("#87D7FF")).Render("source "+configFile))
177+
178+
cmd.Println(boxStyle.Render(msg))
170179

171180
return nil
172181
}

install.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,5 @@ print_success "Successfully installed ${BINARY} v${VERSION}"
161161

162162
# Print welcome message
163163
printf "\n${BOLD}${GREEN}🎉 Welcome to Major!${RESET}\n\n"
164-
printf "Get started with these commands:\n\n"
164+
printf "Get started by running:\n\n"
165165
printf " ${BOLD}major user login${RESET} Log in to your Major account\n"
166-
printf " ${BOLD}major app create${RESET} Create a new application\n"
167-
printf " ${BOLD}major --help${RESET} View all available commands\n"

0 commit comments

Comments
 (0)