Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapCmdFuncForCobra ¶
func WrapCmdFuncForCobra(f func(cmd *cobra.Command) error) func(cmd *cobra.Command, _ []string) error
WrapCmdFuncForCobra cobra의 `RunE` 메서드와 호환되는 함수 래핑
이 함수는 `func(cmd *cobra.Command) error` 형태의 함수를 받아서, cobra의 `RunE` 메서드에서 요구하는 `func(cmd *cobra.Command, _ []string) error` 형태로 변환.
Parameters:
- f: `func(cmd *cobra.Command) error` 형태의 함수로, cobra 명령어의 실행 로직을 포함
Returns:
- func: `func(cmd *cobra.Command, _ []string) error` 형태의 함수로 변환된 결과
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.