ShellDetection class
The project: https://github.com/sarugaku/shellingham
is a useful reference on shell detection.
Provides some conveinence funtions to get access to details about the system shell (e.g. bash) that we were run from.
Note: when you start up dcli from the cli there are three processes involved:
cli - the cli you started dcli from. This is the shell we will return sh - the shebang (#!) spawns an 'sh' shell which dart is run under. dart - the dart process
This class is considered EXPERIMENTAL and is likely to change.
Constructors
- ShellDetection.new()
-
obtain a singleton instance of Shell.
factory
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
-
identifyShell(
) → Shell - Attempts to identify the shell that DCli was run under. Ignores the 'sh' instances used by #! to start a DCli script.
-
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