Script class
Constructors
Script ({required String name , String ? run , String ? description , Map <String , String > env = const {} , PackageFilters ? packageFilters , ExecOptions ? exec , List <String > ? steps = const [] , bool isPrivate = false , List <String > ? groups = const [] })
const
Script.fromYaml (Object yaml , {required String name , required String workspacePath })
factory
Properties
description
→ String ?
A short description, shown when using melos run with no argument.
final
env
→ Map <String , String >
Environment variables that will be passed to run .
final
exec
→ ExecOptions ?
The options for melos exec, if run should be executed in multiple
packages.
final
groups
→ List <String > ?
final
hashCode
→ int
The hash code for this object.
no setter override
isPrivate
→ bool
This option defines if the script shows up in the list of scripts or not
final
name
→ String
A unique identifier for the script.
final
packageFilters
→ PackageFilters ?
If the run command is a melos command, allows filtering packages that
will execute the command.
final
run
→ String ?
The command specified by the user.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
steps
→ List <String > ?
A list of individual command steps to be executed as part of this script.
Each string in the list represents a separate command to be run.
These steps are executed in sequence. This is an alternative to
specifying a single command in the run variable. If steps is
provided, run should not be used.
final