Documentation ¶
Index ¶
- func ConvertToStatusState(s string, allowNoState bool) (gen.StatusState, error)
- func ConvertToUpperFirstLetter(s string) string
- func GetCommonFlags(p *pflag.FlagSet) (bool, int64)
- func ReceiveBody(p *pflag.FlagSet, flagName string) (string, error)
- func ReceiveRating(p *pflag.FlagSet, flagName string) (gen.RatingState, error)
- func SearchWorks(api *api.API, cmd *cobra.Command, args []string) (*gen.WorkFragment, string, error)
- func SetCommonFlags(p *pflag.FlagSet)
- func SetSearchFlags(p *pflag.FlagSet)
- func StripWhiteSpace(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToStatusState ¶
func ConvertToStatusState(s string, allowNoState bool) (gen.StatusState, error)
ConvertToStatusState : 文字列を StatusState に変換
func ConvertToUpperFirstLetter ¶
ConvertToUpperFirstLetter : 頭文字を大文字に変換
func GetCommonFlags ¶
GetCommonFlags : 共通フラグの内容を取得
func ReceiveBody ¶
ReceiveBody : フラグから Body を受け取る
func ReceiveRating ¶
ReceiveRating : 評価を受け取る
func SearchWorks ¶
func SearchWorks(api *api.API, cmd *cobra.Command, args []string) (*gen.WorkFragment, string, error)
SearchWorks : 作品を検索してIDを取得
func StripWhiteSpace ¶
StripWhiteSpace : 空白文字を半角スペースに置換して前後をカット
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.