Help > Usage, Naming, Markdown Help, Spelling, File name Sanitization

This commit is contained in:
luke-hagar-sp
2023-08-04 16:01:26 -05:00
parent a75043ad8f
commit b2f330fd48
65 changed files with 683 additions and 412 deletions

View File

@@ -2,12 +2,10 @@
package sdk
import (
"fmt"
"github.com/spf13/cobra"
)
func NewSDKCmd() *cobra.Command {
func NewSDKCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "sdk",
Short: "Initialize or configure SDK projects",
@@ -15,12 +13,12 @@ func NewSDKCmd() *cobra.Command {
Example: "sail sdk",
Args: cobra.MaximumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
_, _ = fmt.Fprint(cmd.OutOrStdout(), cmd.UsageString())
cmd.Help()
},
}
cmd.AddCommand(
newInitCmd(),
newInitCommand(),
)
return cmd