pub enum TabCmd {
Open {
browser: String,
url: String,
json: bool,
},
List {
browser: String,
all: bool,
json: bool,
},
Foreground {
browser: String,
state: String,
timeout: String,
json: bool,
},
ForegroundHold {
browser_name: String,
target_id: String,
timeout_s: u64,
},
Adopt {
browser: String,
target_id: String,
json: bool,
},
}Variants§
Open
Get-or-create a named tab. Idempotent: re-running with the same
<browser>/<name> returns the existing tab (navigating if url
differs from last_url).
Fields
browser: String<browser> or <browser>/<name>. With no /<name>, the
daemon assigns a cute name (tab-<word>) and creates fresh.
List
List tabs for <browser>.
By default returns rows in the named-tab registry (those agents
opened explicitly via tab open). With --all, returns every
live top-level tab in the browser — registered rows merged with
unnamed user tabs (name column empty for the unnamed ones).
Fields
Foreground
Make a tab behave as the focused, visible foreground tab even while
the window is minimized or the display is locked (games, canvas apps,
anything that pauses in the background). A small holder process keeps
it on until off, the timeout elapses, the tab closes, or the browser
exits. Chromium only.
browser-control tab foreground brave/game on –timeout 2h browser-control tab foreground brave/game off browser-control tab foreground brave off # every tab
Fields
ForegroundHold
Internal: the holder process spawned by tab foreground.
Adopt
Adopt an existing live tab by target ID, binding it to a name.
Use tab list --all to discover unnamed tabs and their target IDs,
then tab adopt <browser>/<name> <target-id> to make them
addressable via --browser <browser>/<name> in page-context commands.
Trait Implementations§
Source§impl FromArgMatches for TabCmd
impl FromArgMatches for TabCmd
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>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for TabCmd
impl Subcommand for TabCmd
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for TabCmd
impl RefUnwindSafe for TabCmd
impl Send for TabCmd
impl Sync for TabCmd
impl Unpin for TabCmd
impl UnsafeUnpin for TabCmd
impl UnwindSafe for TabCmd
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more