-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
🔍 Description
- 현재 각 명령에 help string이 없어 명령에 대한 기본 정보나 사용법을 알기 힘든 상태입니다.
- 적절한 help string을 추가하여, 별도 문서를 확인하지 않고
-hoption으로 기본 정보를 알 수 있도록 합니다.
⏰ Implementation Idea
combra.Command에 아래 필드를 추가합니다.Short,LongExample
예시
var connectCmd = &cobra.Command{
Use: "connect <addr> [username:password]",
Short: "Connect to an ARCUS cache server interactively",
Long: `Connect to an ARCUS cache server and execute commands interactively.
This command establishes a TCP connection to the specified server address
and allows you to send memcached protocol commands directly. If authentication
credentials are provided, SASL SCRAM-SHA-256 authentication will be performed.`,
Example: ` # Connect without authentication
arcusctl connect localhost:11211
# Connect with SASL authentication
arcusctl connect localhost:11211 myuser:mypassword
# After connection, you can execute memcached commands:
get mykey
set mykey 0 0 5
hello`,
Args: cobra.RangeArgs(1, 2),
// …
}$ ./arcusctl connect -h
Connect to an ARCUS cache server and execute commands interactively.
This command establishes a TCP connection to the specified server address
and allows you to send memcached protocol commands directly. If authentication
credentials are provided, SASL SCRAM-SHA-256 authentication will be performed.
Usage:
arcusctl connect <addr> [username:password] [flags]
Examples:
# Connect without authentication
arcusctl connect localhost:11211
# Connect with SASL authentication
arcusctl connect localhost:11211 myuser:mypassword
# After connection, you can execute memcached commands:
get mykey
set mykey 0 0 5
hello
Flags:
-h, --help help for connect
Global Flags:
--config-file string
-v, --verbose
$ ./arcusctl -h
Usage:
arcusctl [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
connect Connect to an ARCUS cache server interactively
help Help about any command
…
Use "arcusctl [command] --help" for more information about a command.
Metadata
Metadata
Assignees
Labels
No labels