HelpExtensions Class

Definition

public ref class HelpExtensions abstract sealed
public static class HelpExtensions
type HelpExtensions = class
Public Module HelpExtensions
Inheritance
HelpExtensions

Methods

Name Description
FunctionName(Command, String[])

Create a unique shell function name for a command - these names should be

  • distinct from the 'root' command's name (i.e. we should not generate the function name 'dotnet' for the binary 'dotnet')
  • distinct based on 'path' to get to this function (hence the parentCommandNames)
HierarchicalOptions(Command)
IsFlag(Option)
IsLongAlias(String)
IsShortAlias(String)
IsUpperCaseSingleCharacterFlag(String)
MakeSafeFunctionName(String)

Sanitizes a function name to be safe for bash

Names(Command)

Get all names for a command, including the primary name and all aliases

Names(Option)

Get all names for an option, including the primary name and all aliases

PrimaryNameAndAliases(Option)

Applies to