PvtroConfig class

CLI configuration options for pvtro

Constructors

PvtroConfig({required String output, required bool verbose, required bool help})
PvtroConfig.defaults()
Returns the default configuration when no overrides are provided.
factory
PvtroConfig.fromArgs(List<String> args, {PvtroConfig? baseConfig})
Parse CLI arguments into config
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
help bool
final
output String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verbose bool
final

Methods

copyWith({String? output, bool? verbose, bool? help}) PvtroConfig
Returns a copy of this config with selected fields replaced.
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

parser → ArgParser
Get the argument parser
no setter

Static Methods

loadProjectConfig(String projectPath) Future<PvtroConfig>
Loads project configuration from pvtro.yaml when it exists.
loadProjectConfigSync(String projectPath) PvtroConfig
Loads project configuration synchronously for builder setup.
printHelp() → void
Print help message

Constants

defaultOutput → const String
The default generated wrapper output path.