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:
+10
-10
@@ -9,9 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func userList() *cobra.Command {
|
||||
var (
|
||||
columns []string
|
||||
)
|
||||
var columns []string
|
||||
cmd := &cobra.Command{
|
||||
Use: "list",
|
||||
Aliases: []string{"ls"},
|
||||
@@ -35,14 +33,16 @@ func userList() *cobra.Command {
|
||||
}
|
||||
|
||||
func userSingle() *cobra.Command {
|
||||
var (
|
||||
columns []string
|
||||
)
|
||||
var columns []string
|
||||
cmd := &cobra.Command{
|
||||
Use: "show <username|user_id|'me'>",
|
||||
Short: "Show a single user. Use 'me' to indicate the currently authenticated user.",
|
||||
Example: "coder users show me",
|
||||
Args: cobra.ExactArgs(1),
|
||||
Use: "show <username|user_id|'me'>",
|
||||
Short: "Show a single user. Use 'me' to indicate the currently authenticated user.",
|
||||
Example: formatExamples(
|
||||
example{
|
||||
Command: "coder users show me",
|
||||
},
|
||||
),
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
client, err := createClient(cmd)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user