Skip to content

Commit a4cc4cf

Browse files
committed
Improve the description formatting using backticks
Signed-off-by: RayyanSeliya <[email protected]>
1 parent 526c031 commit a4cc4cf

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

cmd/describe.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,17 @@ func runDescribe(cmd *cobra.Command, args []string, newClient ClientFactory) (er
8484
return err
8585
}
8686
if !f.Initialized() {
87-
return fmt.Errorf("no function found in current directory.\nYou need to be inside a function directory to get the function description.\n\nTry this:\n func create --language go myfunction Create a new function\n cd myfunction Go into the function directory\n func describe Show function description\n\nOr if you have an existing function:\n cd path/to/your/function Go to your function directory\n func describe Show function description")
87+
return fmt.Errorf(`no function found in current directory.
88+
You need to be inside a function directory to get the function description.
89+
90+
Try this:
91+
func create --language go myfunction Create a new function
92+
cd myfunction Go into the function directory
93+
func describe Show function description
94+
95+
Or if you have an existing function:
96+
cd path/to/your/function Go to your function directory
97+
func describe Show function description`)
8898
}
8999
details, err = client.Describe(cmd.Context(), "", "", f)
90100
if err != nil {

0 commit comments

Comments
 (0)