ShellScript class

Annotation for a single shell script

Only methods marked with this annotation will have corresponding shell scripts generated. The method name will be converted to camelCase for the final generated method name.

Annotations
  • @Target({TargetKind.method})

Constructors

ShellScript.new({required String fileName, List<ShellParameter> parameters = const [], bool allowRawParameters = false})
Creates a ShellScript annotation.
const

Properties

allowRawParameters bool
Whether to allow raw parameter string input
final
fileName String
Script file name (including .sh extension)
final
hashCode int
The hash code for this object.
no setterinherited
parameters List<ShellParameter>
List of supported parameters
final
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