SidekickContext class

Global information about the sidekick cli that is being executed

Get the location of the entryPoint and the sidekickPackage which works when

  • executed via the shell entrypoint (default) or
  • when debugging the cli on the DartVM or
  • when running tests for your custom commands

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

cliName String
Returns the name of the CLI
no setter
entryPoint File
The location of the entryPoint, the shell script that is used to execute the cli.
no setter
projectRoot Directory
The directory where the entryPoint is located
no setter
repository Directory?
The git repository root the sidekickPackage is located in
no setter
sidekickPackage SidekickPackage
The sidekick package inside the projectRoot
no setter