Skip to main content

marker_of

Function marker_of 

Source
pub fn marker_of(environment: &[(OsString, OsString)]) -> Option<StartMarker>
Expand description

What: The marker of an environment, if it carries one. Why: The caller’s environment is passed in, never read from the process, so a control sets any value it likes.

In TS you’d write (pseudocode):

const marker = parseMarker(environment.CLI_GIT_STARTED_AS_GIT);