From 4f4be6eeab1ec2333c6bd6f2f913588acbaf6692 Mon Sep 17 00:00:00 2001 From: Nader Khalil Date: Sun, 12 Nov 2023 19:02:27 -0800 Subject: [PATCH] notebook command --- pkg/cmd/cmd.go | 2 +- pkg/cmd/notebook/notebook.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/cmd.go b/pkg/cmd/cmd.go index 05cf9cfb..b2a54c0d 100644 --- a/pkg/cmd/cmd.go +++ b/pkg/cmd/cmd.go @@ -238,10 +238,10 @@ func createCmdTree(cmd *cobra.Command, t *terminal.Terminal, loginCmdStore *stor cmd.AddCommand(tasks.NewCmdConfigure(t, noLoginCmdStore)) cmd.AddCommand(initfile.NewCmdInitFile(t, noLoginCmdStore)) cmd.AddCommand(hello.NewCmdHello(t, noLoginCmdStore)) + cmd.AddCommand(notebook.NewCmdNotebook(noLoginCmdStore, t)) // dev feature toggle if featureflag.IsDev() { _ = 0 // noop - cmd.AddCommand(notebook.NewCmdNotebook(noLoginCmdStore, t)) cmd.AddCommand(test.NewCmdTest(t, noLoginCmdStore)) cmd.AddCommand(approve.NewCmdApprove(t, loginCmdStore)) cmd.AddCommand(clipboard.EstablishConnection(t, loginCmdStore)) diff --git a/pkg/cmd/notebook/notebook.go b/pkg/cmd/notebook/notebook.go index b2493f8f..7feb44d1 100644 --- a/pkg/cmd/notebook/notebook.go +++ b/pkg/cmd/notebook/notebook.go @@ -61,7 +61,7 @@ func NewCmdNotebook(store NotebookStore, _ *terminal.Terminal) *cobra.Command { urlType := color.New(color.FgCyan, color.Bold).SprintFunc() warningType := color.New(color.FgBlack, color.Bold, color.BgCyan).SprintFunc() - hello.TypeItToMeUnskippable27("\n" + warningType(" Please keep this terminal open 🤙 ")) + hello.TypeItToMeUnskippable("\n" + warningType(" Please keep this terminal open 🤙 ")) hello.TypeItToMeUnskippable27("\nClick here to go to your Jupyter notebook:\n\t 👉" + urlType("http://localhost:8888") + "👈\n\n\n")