Skip to content

Commit

Permalink
Remove silent flag since it has the same value as parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Apr 25, 2024
1 parent 00ab1c6 commit 3db3a17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions bin/puby.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import 'link.dart';
import 'projects.dart';

const decoder = Utf8Decoder();
final clean = Command(['clean'], parallel: true, silent: true);
final clean = Command(['clean'], parallel: true);
final convenienceCommands = <String, List<Command>>{
'gen': [
Command([
Expand Down Expand Up @@ -91,7 +91,6 @@ void main(List<String> arguments) async {
Command(
['pub', 'get', '--offline', ...arguments.skip(1)],
parallel: true,
silent: true,
),
);
} else if (convenienceCommands.containsKey(firstArg)) {
Expand Down
7 changes: 4 additions & 3 deletions lib/command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ class Command {
/// Whether to run the command as is
final bool raw;

/// Whether to run the command in parallel
/// Whether to run the command in all projects in parallel
final bool parallel;

/// Whether to run the command silently
final bool silent;
///
/// Right now this is the same as [parallel]
bool get silent => parallel;

bool _noFvm = false;

Expand All @@ -24,7 +26,6 @@ class Command {
List<String> args, {
this.raw = false,
this.parallel = false,
this.silent = false,
}) {
addArgs(args);
}
Expand Down

0 comments on commit 3db3a17

Please sign in to comment.