pub struct CliArgs {Show 13 fields
pub command: Option<Commands>,
pub port: Option<u16>,
pub device: Option<String>,
pub model: Option<ModelSize>,
pub key: Option<char>,
pub hotkey: Option<String>,
pub no_global: bool,
pub push_to_talk: bool,
pub no_push_to_talk: bool,
pub auto_submit: bool,
pub no_auto_submit: bool,
pub approval: bool,
pub no_approval: bool,
}Expand description
OpenCode voice input CLI tool.
Fields§
§command: Option<Commands>§port: Option<u16>OpenCode server port (required for the run subcommand)
device: Option<String>Audio device name
model: Option<ModelSize>Whisper model size (tiny.en, base.en, small.en)
key: Option<char>Toggle key character (default: space)
hotkey: Option<String>Global hotkey name (default: right_option)
no_global: boolDisable global hotkey, use terminal key only
push_to_talk: boolEnable push-to-talk mode (default: true)
no_push_to_talk: boolDisable push-to-talk mode
auto_submit: boolEnable auto-submit after transcription (default: true)
no_auto_submit: boolDisable auto-submit
approval: boolEnable approval mode for permission/question handling (default: true)
no_approval: boolDisable approval mode
Trait Implementations§
Source§impl Args for CliArgs
impl Args for CliArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for CliArgs
impl CommandFactory for CliArgs
Source§impl FromArgMatches for CliArgs
impl FromArgMatches for CliArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for CliArgs
impl Parser for CliArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for CliArgs
impl RefUnwindSafe for CliArgs
impl Send for CliArgs
impl Sync for CliArgs
impl Unpin for CliArgs
impl UnsafeUnpin for CliArgs
impl UnwindSafe for CliArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more