#[non_exhaustive]pub enum LaunchTrigger {
Always,
Subcommand(RunnerSubcommand),
CommandString(ShellFlag),
ImplicitCommandString,
InlineProgram(InlineFlag),
NpmSpecifier,
ProgramFromStdin(StdinSource),
}Expand description
What about a launcher lets the workspace choose the program that runs.
The values are matched from closed tables, never from configured text.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Always
Every use of the program does (a package or task runner, or a wrapper whose options are not analyzed).
Subcommand(RunnerSubcommand)
This subcommand does.
CommandString(ShellFlag)
This flag gives it a command string.
ImplicitCommandString
A bare argument is read as its command string (Windows PowerShell).
InlineProgram(InlineFlag)
This flag gives an interpreter a program to run inline.
NpmSpecifier
An argument names an npm package to run (npm:).
ProgramFromStdin(StdinSource)
It reads its program from standard input, which carries LSP frames.
Trait Implementations§
Source§impl Clone for LaunchTrigger
impl Clone for LaunchTrigger
impl Copy for LaunchTrigger
Source§impl Debug for LaunchTrigger
impl Debug for LaunchTrigger
Source§impl Display for LaunchTrigger
impl Display for LaunchTrigger
impl Eq for LaunchTrigger
Source§impl PartialEq for LaunchTrigger
impl PartialEq for LaunchTrigger
impl StructuralPartialEq for LaunchTrigger
Auto Trait Implementations§
impl Freeze for LaunchTrigger
impl RefUnwindSafe for LaunchTrigger
impl Send for LaunchTrigger
impl Sync for LaunchTrigger
impl Unpin for LaunchTrigger
impl UnsafeUnpin for LaunchTrigger
impl UnwindSafe for LaunchTrigger
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.