Documentation ¶
Index ¶
- Constants
- func ClientTorrentSortFieldEnumCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func OrderEnumCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func SiteTorrentSortFieldEnumCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- type ClientTorrentSortFieldEnum
- type OrderEnum
- type SiteTorrentSortFieldEnum
Constants ¶
View Source
const ClientTorrentSortFieldEnumInvalidTip = `must be any of: name|size|speed|state|time|tracker|none`
View Source
const ClientTorrentSortFieldEnumTip = `any of: name|size|speed|state|time|tracker|none`
View Source
const OrderEnumInvalidTip = `must be any of: asc|desc`
View Source
const OrderEnumTip = `any of: asc|desc`
View Source
const SiteTorrentSortFieldEnumInvalidTip = `must be any of: size|time|name|seeders|leechers|snatched|none`
View Source
const SiteTorrentSortFieldEnumTip = `any of: size|time|name|seeders|leechers|snatched|none`
Variables ¶
This section is empty.
Functions ¶
func OrderEnumCompletion ¶
Types ¶
type ClientTorrentSortFieldEnum ¶
type ClientTorrentSortFieldEnum string
func (*ClientTorrentSortFieldEnum) Set ¶
func (e *ClientTorrentSortFieldEnum) Set(v string) error
Set must have pointer receiver so it doesn't change the value of a copy
func (*ClientTorrentSortFieldEnum) String ¶
func (e *ClientTorrentSortFieldEnum) String() string
String is used both by fmt.Print and by Cobra in help text
func (*ClientTorrentSortFieldEnum) Type ¶
func (e *ClientTorrentSortFieldEnum) Type() string
Type is only used in help text
type OrderEnum ¶
type OrderEnum string
type SiteTorrentSortFieldEnum ¶
type SiteTorrentSortFieldEnum string
func (*SiteTorrentSortFieldEnum) Set ¶
func (e *SiteTorrentSortFieldEnum) Set(v string) error
Set must have pointer receiver so it doesn't change the value of a copy
func (*SiteTorrentSortFieldEnum) String ¶
func (e *SiteTorrentSortFieldEnum) String() string
String is used both by fmt.Print and by Cobra in help text
func (*SiteTorrentSortFieldEnum) Type ¶
func (e *SiteTorrentSortFieldEnum) Type() string
Type is only used in help text
Click to show internal directories.
Click to hide internal directories.