File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,10 +217,8 @@ func printSuccessMessage(cobraCmd *cobra.Command, appName string) {
217217 MarginBottom (1 )
218218
219219 cdStyle := lipgloss .NewStyle ().
220- Foreground (lipgloss .Color ("14" )). // Cyan - more readable
221- Bold (true ).
222- MarginTop (1 ).
223- MarginBottom (1 )
220+ Foreground (lipgloss .Color ("10" )). // Green
221+ Bold (true )
224222
225223 // Build the message
226224 successMsg := successStyle .Render ("🎉 Congrats on setting up your app!" )
@@ -237,24 +235,24 @@ func printSuccessMessage(cobraCmd *cobra.Command, appName string) {
237235 deployCommand := commandStyle .Render ("major app deploy" )
238236 deployDesc := descriptionStyle .Render (" Deploy your app to production when ready" )
239237
240- editorCommand := commandStyle .Render ("major app editor " )
241- editorDesc := descriptionStyle .Render (" Open your app in the UI editor " )
238+ resourceCommand := commandStyle .Render ("major resource manage " )
239+ resourceDesc := descriptionStyle .Render (" Manage the resources your app is connected to " )
242240
243- content := fmt .Sprintf ("%s\n \n %s\n %s\n \n %s\n %s\n \n %s\n %s" ,
241+ content := fmt .Sprintf ("%s\n \n %s\n \n %s \n %s\n \n %s\n %s\n \n %s\n %s" ,
244242 nextStepsTitle ,
243+ cdInstruction ,
245244 startCommand ,
246245 startDesc ,
247246 deployCommand ,
248247 deployDesc ,
249- editorCommand ,
250- editorDesc ,
248+ resourceCommand ,
249+ resourceDesc ,
251250 )
252251
253252 box := boxStyle .Render (content )
254253
255254 // Print everything
256255 cobraCmd .Println (successMsg )
257- cobraCmd .Println (cdInstruction )
258256 cobraCmd .Println (box )
259257}
260258
Original file line number Diff line number Diff line change 1+ package cmd
2+
3+ import (
4+ "github.com/major-technology/cli/utils"
5+ "github.com/spf13/cobra"
6+ )
7+
8+ var docsCmd = & cobra.Command {
9+ Use : "docs" ,
10+ Short : "Open the Major documentation" ,
11+ Long : `Opens the Major documentation in your default browser (https://docs.major.build/)` ,
12+ RunE : func (cmd * cobra.Command , args []string ) error {
13+ cmd .Println ("Opening documentation..." )
14+ return utils .OpenBrowser ("https://docs.major.build/" )
15+ },
16+ }
17+
18+ func init () {
19+ rootCmd .AddCommand (docsCmd )
20+ }
You can’t perform that action at this time.
0 commit comments