Skip to main content

outside_worktree_message

Function outside_worktree_message 

Source
pub fn outside_worktree_message(command: GuardedCommand) -> &'static str
Expand description

What: The rejection text for a command run where there is no worktree. &'static str is text baked into the program. Why: The text says what the command could destroy and how to run it safely.

In TS you’d write (pseudocode):

function outsideWorktreeMessage({ command }): string;