pub enum ValueHint {
Show 13 variants
Unknown,
Other,
FilePath,
AnyPath,
DirPath,
ExecutablePath,
CommandName,
CommandString,
CommandWithArguments,
Username,
Hostname,
Url,
EmailAddress,
}Expand description
A value’s shell-native completion class for #[usage(value_hint = ...)].
This lives in the runtime crate so a declaration never needs clap merely to describe what kind of path a shell should offer. It is metadata only and adds no work to a successful parse.
Variants§
Unknown
Let the shell use its normal fallback behavior.
Other
No structured hint applies; suppress the shell’s path fallback.
FilePath
A path to a file.
AnyPath
A path to either a file or a directory.
DirPath
A path to a directory.
ExecutablePath
A path to an executable file.
CommandName
A command name, resolved through the shell’s command table and PATH.
CommandString
One string containing a command and any arguments.
CommandWithArguments
A trailing argv vector: complete the first value as a command, then its arguments.
Username
A local operating-system user name.
Hostname
A host name known to the shell or operating system.
Url
A web address. This suppresses path fallback but offers no finite candidate set.
EmailAddress
An email address. This suppresses path fallback but offers no finite candidate set.