mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Standardize and wrap example descriptions at 80 chars (#2894)
This commit is contained in:
+6
-4
@@ -31,15 +31,17 @@ func createUserStatusCommand(sdkStatus codersdk.UserStatus) *cobra.Command {
|
||||
panic(fmt.Sprintf("%s is not supported", sdkStatus))
|
||||
}
|
||||
|
||||
var (
|
||||
columns []string
|
||||
)
|
||||
var columns []string
|
||||
cmd := &cobra.Command{
|
||||
Use: fmt.Sprintf("%s <username|user_id>", verb),
|
||||
Short: short,
|
||||
Args: cobra.ExactArgs(1),
|
||||
Aliases: aliases,
|
||||
Example: fmt.Sprintf("coder users %s example_user", verb),
|
||||
Example: formatExamples(
|
||||
example{
|
||||
Command: fmt.Sprintf("coder users %s example_user", verb),
|
||||
},
|
||||
),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
client, err := createClient(cmd)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user