diff --git a/docs/before_and_after/after/runner.dart b/docs/before_and_after/after/runner.dart index daf2c73..86cafa4 100644 --- a/docs/before_and_after/after/runner.dart +++ b/docs/before_and_after/after/runner.dart @@ -2,8 +2,6 @@ import 'package:cli_annotations/cli_annotations.dart'; part 'runner.g.dart'; -Future main(List arguments) => GitRunner().run(arguments); - /// A command-line interface for version control. @cliRunner class GitRunner extends _$GitRunner { diff --git a/docs/before_and_after/before/runner.dart b/docs/before_and_after/before/runner.dart index ef35296..ea06e1f 100644 --- a/docs/before_and_after/before/runner.dart +++ b/docs/before_and_after/before/runner.dart @@ -2,8 +2,6 @@ import 'dart:io'; import 'package:args/command_runner.dart'; -Future main(List arguments) => GitRunner().run(arguments); - /// A dart implementation of distributed version control. class GitRunner extends CommandRunner { GitRunner() diff --git a/docs/before_and_after/screenshots/after.png b/docs/before_and_after/screenshots/after.png new file mode 100644 index 0000000..09ff5ea Binary files /dev/null and b/docs/before_and_after/screenshots/after.png differ diff --git a/docs/before_and_after/screenshots/before.png b/docs/before_and_after/screenshots/before.png new file mode 100644 index 0000000..f612b0d Binary files /dev/null and b/docs/before_and_after/screenshots/before.png differ diff --git a/docs/before_and_after/script.zsh b/docs/before_and_after/script.zsh new file mode 100644 index 0000000..0ba732c --- /dev/null +++ b/docs/before_and_after/script.zsh @@ -0,0 +1,13 @@ +# #!/usr/bin/env zsh + +typeset -A files +files[before/runner.dart]=before +files[after/runner.dart]=after + +for file in ${(k)files} +do + output=${files[$file]} + echo "Processing: $file" + # note: best themes to use are: seti, synthwave '84, night owl, vscode + carbon-now $file -p my-preset --save-as screenshots/$output && echo "Output: $output" +done \ No newline at end of file diff --git a/example/bin/main.dart b/example/bin/main.dart index 23506db..cd2e90f 100644 --- a/example/bin/main.dart +++ b/example/bin/main.dart @@ -1,6 +1,8 @@ import 'package:example/runner.dart'; -void main(List arguments) async { - final runner = GitRunner(); - await runner.run(arguments); -} +// void main(List arguments) async { +// final runner = GitRunner(); +// await runner.run(arguments); +// } + +Future main(List arguments) => GitRunner().run(arguments);