Skip to content

Commit c6304bf

Browse files
committed
Improve the description formatting using backticks
Signed-off-by: RayyanSeliya <rayyanseliya786@gmail.com>
1 parent d38e3ee commit c6304bf

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

cmd/describe.go

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

0 commit comments

Comments
 (0)