Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from dart-lang/merge-args-package
* Split the args tests into a couple of smaller suites. Review URL: https://codereview.chromium.org//11817027 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@16882 260f80e4-7a28-3924-810f-c04153c831b5 * Add command support to args. Review URL: https://codereview.chromium.org//11819068 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@16988 260f80e4-7a28-3924-810f-c04153c831b5 * Added documentation links to all of the pkg packages hosted on api.dartlang.org. Review URL: https://codereview.chromium.org//12218119 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@18414 260f80e4-7a28-3924-810f-c04153c831b5 * Update documentation links to point to the correct URLs. Review URL: https://codereview.chromium.org//12252055 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@18552 260f80e4-7a28-3924-810f-c04153c831b5 * Remove deprecated Strings class. Review URL: https://codereview.chromium.org//12295014 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@18686 260f80e4-7a28-3924-810f-c04153c831b5 * Fix use of stringbuffer in pkg/args Review URL: https://codereview.chromium.org//12335035 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@18902 260f80e4-7a28-3924-810f-c04153c831b5 * Change new List(n) to return fixed length list. Deprecate List.fixedLength, add List.filled. Make Iterable.toList and List.from take "growable" argument, defaulting to false. Review URL: https://codereview.chromium.org//12328104 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@19112 260f80e4-7a28-3924-810f-c04153c831b5 * Make arg parser return growable list of rest arguments. This allows the user to remove them when he's done, which is what is currently being done. Review URL: https://codereview.chromium.org//12316155 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@19119 260f80e4-7a28-3924-810f-c04153c831b5 * Make List.from and Iterable.toList default to not growable. Review URL: https://codereview.chromium.org//12401002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@19391 260f80e4-7a28-3924-810f-c04153c831b5 * Rename XMatching to XWhere. For example firstMatching -> firstWhere. BUG= http://dartbug.com/8664 BUG= http://dartbug.com/8337 Review URL: https://codereview.chromium.org//12537009 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@19880 260f80e4-7a28-3924-810f-c04153c831b5 * pkg/args Option should be more strict about names and abbreviations Should not allow: space, \t, \r, \n, single- and double-quote, slashes Should not allow empty string Should not allow '-' as the beginning character name should not be allowed to be null (although it's fine for abbreviation) BUG=https://code.google.com/p/dart/issues/detail?id=8965 Review URL: https://codereview.chromium.org//12472019 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@20040 260f80e4-7a28-3924-810f-c04153c831b5 * Moved pkg pubspecs to use dev_dependencies where appropriate BUG=https://code.google.com/p/dart/issues/detail?id=9309 Review URL: https://codereview.chromium.org//12962003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@20285 260f80e4-7a28-3924-810f-c04153c831b5 * Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove. BUG= Review URL: https://codereview.chromium.org//14173003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@21338 260f80e4-7a28-3924-810f-c04153c831b5 * add installation instructions to pkg packages BUG= Review URL: https://codereview.chromium.org//14188048 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@21770 260f80e4-7a28-3924-810f-c04153c831b5 * Allow passing in an existing ArgParser for a command. [email protected] Review URL: https://codereview.chromium.org//15621002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@22973 260f80e4-7a28-3924-810f-c04153c831b5 * Switch from DRT to content shell. [email protected], [email protected] Review URL: https://codereview.chromium.org//15755017 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@23328 260f80e4-7a28-3924-810f-c04153c831b5 * Moved the Option class to its own file in anticipation of working on it. [email protected] Review URL: https://codereview.chromium.org//16802002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@24107 260f80e4-7a28-3924-810f-c04153c831b5 * Added new style of tests for parser. [email protected] Review URL: https://codereview.chromium.org//17333004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@24207 260f80e4-7a28-3924-810f-c04153c831b5 * Added the continueParsing option to ArgParser. [email protected] Review URL: https://codereview.chromium.org//12545013 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@24366 260f80e4-7a28-3924-810f-c04153c831b5 * pkg/args: expose immutable collections BUG= https://code.google.com/p/dart/issues/detail?id=10127 [email protected] Review URL: https://codereview.chromium.org//19810004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@25347 260f80e4-7a28-3924-810f-c04153c831b5 * Copyedit pass over args library description; fixed some example code [email protected], [email protected] Review URL: https://codereview.chromium.org//23603002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@27388 260f80e4-7a28-3924-810f-c04153c831b5 * Add support for hidden options to pkg/args. [email protected] BUG= Review URL: https://codereview.chromium.org//23913009 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@27853 260f80e4-7a28-3924-810f-c04153c831b5 * Remove uses of Options from pkg, samples, tests, and third_party directories. BUG= [email protected] Review URL: https://codereview.chromium.org//52573002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@29552 260f80e4-7a28-3924-810f-c04153c831b5 * add versions and constraints for packages and samples - all packages at 0.9.0, except "analyzer" which had a version already - dependencies at ">=0.9.0 <0.10.0" except analyzer is ">=0.10.0 <0.11.0" - sdk constraint ">=1.0.0 <2.0.0" [email protected] Review URL: https://codereview.chromium.org//59763006 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@29957 260f80e4-7a28-3924-810f-c04153c831b5 * Revert "add versions and constraints for packages and samples" This is currently blocking us from testing samples. BUG= [email protected] Review URL: https://codereview.chromium.org//59513007 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@29960 260f80e4-7a28-3924-810f-c04153c831b5 * Re-land r29957 (add versions and constraints for packages and samples), with SDK constraints bumped from 1.0.0 to 0.8.10+6 . [email protected], [email protected] Review URL: https://codereview.chromium.org//62473002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@29986 260f80e4-7a28-3924-810f-c04153c831b5 * Combine unmodifiable_collection package into collection_helpers. Avoids some duplicated code, and makes everything much simpler. [email protected] Review URL: https://codereview.chromium.org//70073003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@30402 260f80e4-7a28-3924-810f-c04153c831b5 * pkg/args: a bunch of test cleanup [email protected] Review URL: https://codereview.chromium.org//88553003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@30675 260f80e4-7a28-3924-810f-c04153c831b5 * Add a [hide] argument to [ArgParser.addFlag]. Also bump the args version to 0.10.0 in preperation for a release. [email protected] BUG= Review URL: https://codereview.chromium.org//82213002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@30678 260f80e4-7a28-3924-810f-c04153c831b5 * pkg/args: updated args dependency on collection_helpers to >= 0.9.1 [email protected] Review URL: https://codereview.chromium.org//89173002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@30924 260f80e4-7a28-3924-810f-c04153c831b5 * Create associated packages for the dart:collection and dart:async libs. [email protected] Review URL: https://codereview.chromium.org//113883002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@31260 260f80e4-7a28-3924-810f-c04153c831b5 * flagging pkg/args and pkg/logging as dev+1 should be publishing with bumped version due to package constraint changes [email protected] Review URL: https://codereview.chromium.org//102833012 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@31388 260f80e4-7a28-3924-810f-c04153c831b5 * pkg/args: adding LICENSE file [email protected] Review URL: https://codereview.chromium.org//121753002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@31391 260f80e4-7a28-3924-810f-c04153c831b5 * Ignore hidden options when calculating usage columns. [email protected] Review URL: https://codereview.chromium.org//203273013 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@34140 260f80e4-7a28-3924-810f-c04153c831b5 * Move allowTrailingOptions into ArgParser. [email protected], [email protected], [email protected] Review URL: https://codereview.chromium.org//260963007 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@35837 260f80e4-7a28-3924-810f-c04153c831b5 * Modernize the docs for args. [email protected] Review URL: https://codereview.chromium.org//271183002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@36072 260f80e4-7a28-3924-810f-c04153c831b5 * Fix typo in readme. BUG=https://code.google.com/p/dart/issues/detail?id=19106 [email protected] Review URL: https://codereview.chromium.org//362383002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@37962 260f80e4-7a28-3924-810f-c04153c831b5 * Allow defining a help string for an option's parameter value. BUG= https://code.google.com/p/dart/issues/detail?id=5201 [email protected] Review URL: https://codereview.chromium.org//363083002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@38047 260f80e4-7a28-3924-810f-c04153c831b5 * Add .wasParsed() to ArgResults. BUG=https://code.google.com/p/dart/issues/detail?id=16227 [email protected], [email protected], [email protected] Review URL: https://codereview.chromium.org//383913003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@38348 260f80e4-7a28-3924-810f-c04153c831b5 * Remove documentation links for repo packages. pub.dartlang.org will now automatically link to dartdocs.org for packages with no documentation link. BUG= http://dartbug.com/20177, http://dartbug.com/20178, http://dartbug.com/20186 [email protected] Review URL: https://codereview.chromium.org//416973003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@38551 260f80e4-7a28-3924-810f-c04153c831b5 * Update dart:collection to version 1.0.0 [email protected] Review URL: https://codereview.chromium.org//463333004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@39484 260f80e4-7a28-3924-810f-c04153c831b5 * Clean up after r39484 and r39486. In particular, this adds CHANGELOG entries for packages that have been modified and fixes pub's barback dependency so it doesn't declare compatibility on an uncut release. This releases args, barback, http_parser, and shelf. [email protected] Review URL: https://codereview.chromium.org//506973003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@39563 260f80e4-7a28-3924-810f-c04153c831b5 * Fix args README BUG= https://code.google.com/p/dart/issues/detail?id=20224 [email protected] Review URL: https://codereview.chromium.org//634853002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@40965 260f80e4-7a28-3924-810f-c04153c831b5 * Swap getUsage() for get usage in args package BUG= https://code.google.com/p/dart/issues/detail?id=12536 [email protected] Review URL: https://codereview.chromium.org//631123002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@40966 260f80e4-7a28-3924-810f-c04153c831b5 * Remove "-dev" to publish args package. [email protected], [email protected] Review URL: https://codereview.chromium.org//698463004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@41448 260f80e4-7a28-3924-810f-c04153c831b5 * Add an ArgResults.original getter. [email protected] Review URL: https://codereview.chromium.org//796593004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@42301 260f80e4-7a28-3924-810f-c04153c831b5 * Add a CommandRunner class for dispatching commands to args. This was extracted from pub's dispatching logic. [email protected] Review URL: https://codereview.chromium.org//797473002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@42418 260f80e4-7a28-3924-810f-c04153c831b5 * Fix the built-in help command in args. [email protected] TBR Review URL: https://codereview.chromium.org//812743002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/args@42421 260f80e4-7a28-3924-810f-c04153c831b5 * Add gitignore, status, and codereview files. * Don't mark tests as failing on the browser. * fix dependency on unittest [email protected] Review URL: https://codereview.chromium.org//849983002 * format code, removed unused variables and deprecated usage [email protected] Review URL: https://codereview.chromium.org//849023002 * Fixed implementation of ArgResults.options to really use Iterable<String> instead of Iterable<dynamic> cast to Iterable<String>. BUG= [email protected] Review URL: https://codereview.chromium.org//870883006 * Explicit example of parsing args from main * reflowing * Update CHANGELOG and pubspec version. * Are you a fan of method cascades? * Fix example addFlag doesn't return an instance. * Fixed missing comma in test and updated README syntax Closes dart-lang/args#1 [email protected] Review URL: https://codereview.chromium.org//925003002 * Remove dependency on 'collection' * Update the CHANGELOG and pubspec. * Fix the CHANGELOG. * Parse comma-separated multiple values. [email protected] Review URL: https://codereview.chromium.org//975463004 * Upgrade to test 0.12.0. [email protected] Review URL: https://codereview.chromium.org//1145403002 * Add support for separators. [email protected] Review URL: https://codereview.chromium.org//1145413002 * Follow getopt in parsing option-like values. The getopt function (and the GNU getopt_long extension) are the de facto standards for option parsing, so we should follow their behavior to make Dart programs consistent with other languages. Closes dart-lang/args#36 [email protected] Review URL: https://codereview.chromium.org//1165263003 * Fix the version number in the changelog. I changed the pubspec but I forgot this. [email protected] Review URL: https://codereview.chromium.org//1168923002. * Use the new test runner on the bots. [email protected] Review URL: https://codereview.chromium.org//1235363003 . * Get rid of all the library tags. [email protected] Review URL: https://codereview.chromium.org//1575233006 . * Don't truncate multi-line command descriptions. Closes dart-lang/args#42 [email protected] Review URL: https://codereview.chromium.org//1603063004 . * Fix 0.13.3+1 version in CHANGELOG * Fix dart-lang/args#39 with docs change * Add a CHANGELOG entry and bump the version. * Document allowTrailingOptions in code * Update the pubspec and changelog. * replace deprecated getUsage() method * Cut a release for the fix in b9049a8. See dart-lang/args#46 * Make it strong mode clean. [email protected] Review URL: https://codereview.chromium.org//1748333005 . * README fixes UsageError → UsageException Fixed links to classes, methods etc. in command_runner library * Release the changes in dart-lang/args#47. * Add an explicit distinction between a command's description and summary. 6e6d9f282c364b321127be70d522be64d47cc902 broke some users who were relying on only the first line of a command's description being included in its runner's usage as a summary. That is once again the default behavior. To support the use case described in dart-lang/args#42, there's a new Command.summary getter that explicitly controls the summary included in the parent runner's usage. This defaults to the first line of the description, but may be overridden to declare a multi-line summary. Closes dart-lang/args#42 [email protected] Review URL: https://codereview.chromium.org//1812923003 . * Ensure that lists are reified. This is important for strong mode, since "as List<String>" will fail for a "List<dynamic>". [email protected] Review URL: https://codereview.chromium.org//1954923002 . * UsageException isn't called UsageError. Closes dart-lang/args#50. [email protected] Review URL: https://codereview.chromium.org//1985883002 . * Allow command ArgParsers to be overridden. This didn't work in strong mode, since they were declared as fields. [email protected] Review URL: https://codereview.chromium.org//2173623002 . * Print the proper usage in CommandRunner. (dart-lang/args#53) This now prints the usage for the command that failed to parse, rather than always printing the root usage. Closes dart-lang/args#52 * Fix an analysis hint. (dart-lang/args#56) * Print command help for "bin --help command" (dart-lang/args#55) Closes dart-lang/args#54 * Support command return value forwarding. (dart-lang/args#59) This was unintentionally supported prior to 0.13.6+1. This re-adds support, documents and tests it, and adds type annotations to make it type-safe. Closes dart-lang/args#57 Closes dart-lang/args#58 * Fix return value with latest change in pkg/test (dart-lang/args#63) * Add Travic-CI support Follow up on https://github.com/dart-lang/args/pull/64 * dartfmt * Use the recommended name for analysis_options And add/fix a number of standard lints * Document that Command.argParser can be overridden. (dart-lang/args#72) See dart-lang/args#68 * Add ArgParser.allowAnything(). (dart-lang/args#71) Closes dart-lang/args#70 * Make allowTrailingOptions default to `false`. (dart-lang/args#66) Make allowTrailingOptions default to `false`. Also release 1.0.0. * Update .travis.yml: allows failures in dartfmt dev (dart-lang/args#75) * Remove pkg/test override * Fix a fuzzy arrow warning (dart-lang/args#79) Closes dart-lang/args#78 * Fix unused import warning in tests. (dart-lang/args#80) * Take Iterables rather than Lists where possible (dart-lang/args#83) Take Iterables rather than Lists where possible Closes dart-lang/args#82 * Type the callback parameter to addOption as Function (dart-lang/args#84) See flutter/flutterdart-lang/args#13223 * Type Command.run()'s return value as FutureOr<T> (dart-lang/args#87) Closes dart-lang/args#85 * Improve the documentation option values Closes dart-lang/args#73 * Deprecate upper-case constants in favor of lowercase * Make Option's field names match addOption's parameters * Reformat tests with the latest dartfmt * Add a separate addMultiOption() method This allows us to be more specific in our types and to keep flags that are specific to multi-options in the place where they make sense. Closes dart-lang/args#90 * Fix addMultiOption() and addOption(allowMultiple) usage (dart-lang/args#94) We were printing the option list, with square brackets, even for options that didn't have a default. Fixes dart-lang/testdart-lang/args#774. * Narrow the SDK constraint to require FutureOr (dart-lang/args#89) Closes dart-lang/args#88 * Remove lints (dart-lang/args#98) I don't believe in supporting lints that are generally unmaintained and non-canonical. * Display the default values for options with allowedHelp specified (dart-lang/args#100) Closes dart-lang/args#99 * pubspec conventions dart-lang/site-wwwdart-lang/args#825 * Update .gitignore to new `dart_tool` pub cache dart-lang/sdkdart-lang/args#32030 * Update README to use addMultiOption (dart-lang/args#104) * chore: set max SDK version to <3.0.0 (dart-lang/args#106) * Add optional wrapping of text for usage messages. * Review changes * Tweak the new word wrapping and get ready to release it. - Renamed "maxLineLength" to "usageLineLength". In the context of ArgParser, the former makes it sound like it's the argument line itself that it applies to. - Some style tweaks. - Remove some ooooold workarounds. Strings support padRight() now. - Run dartfmt on it. - Bump the version number and update CHANGELOG. * Document isWhitespace(). * Incorporate review feedback. * Add support for wrapping command descriptions and other help text. * Review changes. * Bump version to publish. * Enable and fix a number of standard lints and deprecated member use (dart-lang/args#111) Improves the package health when analyzed on the pub site * All deprecated usage from this package (dart-lang/args#112) * Support usageLineLength in CommandRunner (dart-lang/args#115) * dartfmt * fix latest pedantic lints * Fix deprecated URLs (dart-lang/args#117) Remove superfluous codereview.settings * Prepare to release 1.5.2 (dart-lang/args#118) * Remove linter rules included in pedantic 1.8.0 * remove optional `new`s * Fix newly enforced package:pedantic lints (dart-lang/args#126) - always_declare_return_types - annotate_overrides - prefer_conditional_assignment - prefer_if_null_operators - prefer_single_quotes - prefer_spread_collections - unnecessary_this - use_function_type_syntax_for_parameters Bump min SDK to 2.3.0 to allow spreads in collection literals. Drop unused author field from pubspec. Restructure a string to avoid a line over 80 characters. * Fix performance issues due to list.removeAt(0), which makes parsing O(n^2). Add a test that checks that parse time does not increase more than 30x when input size grows from 10k to 100k. The current increase is about x2, so this is a very loose check that should be reliably green. It will only trigger if we hit O(n^2) behaviour again. * Address review comments. * address an issue when using ArgParser.allowAnything() with CommandRunner (dart-lang/args#132) address an issue when using allowAnything * With benchmark. * Improve parse speed by switching from regexps to simple string operations. 50k short flags before: 11ms, 11ms, 13ms, 11ms, 17ms after: 6ms, 5ms, 6ms, 5ms, 8ms 50k abbreviations before: 97ms, 114ms, 120ms, 111ms, 107ms after: 39ms, 37ms, 51ms, 36ms, 36ms 50k long flags before: 27ms, 26ms, 24ms, 24ms, 28ms after: 15ms, 19ms, 19ms, 15ms, 15ms 50k long options with = before: 27ms, 26ms, 27ms, 24ms, 26ms after: 15ms, 19ms, 19ms, 15ms, 15ms * prep for publishing 1.5.3 (dart-lang/args#133) prep for publishing 1.5.3 * Address review comments. * Update CHANGELOG.md Co-Authored-By: Jacob MacDonald <[email protected]> * Enforce and fix comment_references lint (dart-lang/args#138) * Reference CommandRunner from addCommand docs (dart-lang/args#139) Closes dart-lang/args#134 The `addCommand` API is a little confusing, it doesn't impact the usage string the way you might expect. In the future we might consider hiding this API, for now call out the confusing aspect and point to the API that most folks should use. * Fix parsing: re-allow underscore in long names. (dart-lang/args#141) * Changelog for underscore fix, prepare to publish (dart-lang/args#142) * Remove extra blank lines between options (dart-lang/args#137) Fixes dart-lang/args#48 The extra blank lines imply a grouping, however the grouping is arbitrary based on which options happened to wrap, and may vary based on the terminal width. Instead keep all options without extra newlines. * Remove help form the list of commands in usage (dart-lang/args#140) Closes dart-lang/args#131 The `help` command is redundant against the bottom line of the usage text which explains how to use help in a more understandable way. * Prepare for publish (dart-lang/args#143) * Clean up some doc comments and code style (dart-lang/args#147) - Note some argument restrictions when `name` must be a valid option. - Remove a comment that adds no information on a constructor. - Use a consistent pattern for checking valid option names - `containsKey` rather than check for a `null` value. - End a doc comment with a period. - Change a getter doc comment to a noun phrase. - Remove some repetitive details from doc comments, like types. - Add explicit `show` to all exports rather than rely on catching all package private stuff with a `hide`. - Use `.toSet()` over `Set.from` to copy a set. * Update http URLs to https (dart-lang/args#152) Use https URLs to improve pub score. * Remove unused dart:async imports. (dart-lang/args#157) As of Dart 2.1, Future/Stream have been exported from dart:core. * Improve the docs for CommandRunner (dart-lang/args#148) * Migrate to null safety (dart-lang/args#159) Initial migration to null safety, futher updates still pending and breaking changes possible. * Remove already deprecated APIs (dart-lang/args#165) * Use Null as return type for HelpCommand.run (dart-lang/args#164) This may make it easier to understand choices around nullability by making it explicit that the help command can never return a useful value from it's `run` method. Remove the unnecessary return value and return statement since a `Null` return type may be treated similarly to `void`. * Bump to 2.0.0 in anticipation of release. (dart-lang/args#166) * Bump to 2.0.0 in anticipation of release. Also tweaked a couple of tiny things. * Correct version number. * Remove ignore for deprecated usage (dart-lang/args#167) * Give a specific function type for callback (dart-lang/args#168) Closes dart-lang/args#149 * Fix link to use https (dart-lang/args#174) * Re-expose the class OptionType (dart-lang/args#175) This was hidden in dart-lang/args#147 but it is used by some external packages and there is no strong reason to make this an additional breaking change. * Refactor usage.dart (dart-lang/args#169) - Add a top level method rather than require a constructor call and call to `generate()` when there is otherwise no reason to hold on to the `Usage` object. This makes it more clear that the implementation is following a method object pattern. - Update doc comment which had drifted from the original implementation and no longer referred to the correct arguments. - Make the `StringBuffer` field final since it is now a guaranteed single use object. - Make everything possible private. This revealed that there was a field being updated but never read and can be removed. - Remove `get` from method names. - Make the `_columnWidths` late final rather than initialize it manually in the call to `generate()`. - Pull out sub-methods `_writeSeparator` and `_writeOption` from `generate` to reduce nesting and the length of the overall method. - use `.take(size)` instead of `.sublist(size)` since we only need an Iterable. - Use `.first` and `.last` over manual indexing. - Use `.removeAt(0)` over `.removeRange(0,1)`. - Rewrite a for loop with `.addAll` calls to a List literal with a for loop element. * Deprecate methods name get* (dart-lang/args#172) Towards dart-lang/args#171 * Migrate to GitHub Actions (dart-lang/args#176) * Add a test for passing allowedHelp without allowed (dart-lang/args#170) Avoid a potential breaking solution for dart-lang/args#25 * stable null safety release (dart-lang/args#180) * Add support for argument name aliases (dart-lang/args#182) Closes https://github.com/dart-lang/args/issues/181 Add `aliases` named argument to `addFlag`, `addOption`, and `addMultiOption`, as well as a public `findByNameOrAlias` method on `ArgParser`. This allows you to provide aliases for an argument name, which eases the transition from one argument name to another. Keys are _not_ added to the `options` map for each alias. cc @Hixie * Added mandatory (or required) option (dart-lang/args#177) * Use --fatal-infos when analyzing on CI (dart-lang/args#184) Fix some lints. * Enable lint prefer_typing_uninitialized_variables (dart-lang/args#187) Gives some safety against mistakes since there are fewer calls on a statically dynamic variable. * Split parse* methods to avoid duplicate work (dart-lang/args#185) Each of the methods `parseSoloOption`, `parseAbbreviation`, and `parseLongOption` do some string manipulation and checking, before potentially calling the same method on their parent parser. No state changes during parsing part. Split out a 'handle' method in each case that takes a partially parsed result as arguments, and avoid duplicating that work at each step in the parent chain. There may be other work that could be avoided but it would take deeper refactoring. The `parseShortFlag` does not need to be split since there are no intermediate results computed from the String. Make all possible members of `Parser` private. Use a list literal for `_rest` in the initializer list instead of using `.addAll` in the constructor body. * Use latest setup action (dart-lang/args#188) and test oldest supported SDK * Update LICENSE (dart-lang/args#189) Changes to comply with internal review * publish 2.1.0 (dart-lang/args#191) * clean up the sdk constraint and dep overrides (dart-lang/args#192) * Fix newly enforced lint (dart-lang/args#193) * fix a null assertion error when there are missing mandatory args in commands (dart-lang/args#199) Fixes https://github.com/dart-lang/args/issues/197 The 2nd argument to ArgParserException is supposed to be the command chain that it was parsed from and not the option (note this is handled separately as well) - this was causing the command runner to throw a null assertion error later on by passing the name of the mandatory option as the command name, which doesn't exist as a command. * Dart format with latest SDK (dart-lang/args#207) * show similar commands with an edit distance of 2 or less (dart-lang/args#206) Fixes dart-lang/args#201 Uses the Optimal string alignment distance algorithm to compute edit distance, which allows for additions, removals, substitutions, and swaps - all as 1 cost operations. Suggests any commands within an edit distance of <=2 by default, which is configurable. You can set it to 0 to disable the feature. * Add ability to group commands by category in usage (dart-lang/args#202) To enable https://github.com/flutter/flutter/issues/83706 Formatting is loosely based on what `Brew` does, and open to suggestions. Existing tests are unchanged. Example (all displayed commands categorized): <img width="669" alt="Screenshot 2021-07-23 at 16 22 40" src="https://user-images.githubusercontent.com/6655696/126796093-e8652385-c3d7-4600-83b1-76852ab46ea4.png"> * Move from pedantic to lints package (dart-lang/args#208) Fix existing violations of lints: - `prefer_initializing_formals` - `unnecessary_string_interpolations` - `prefer_function_declarations_over_variables` Ignore one case of `prefer_void_to_null` to work around https://github.com/dart-lang/linter/issues/2792 * Fix pre-existing HintCode.UNNECESSARY_TYPE_CHECK_TRUE (dart-lang/args#209) This prepares for landing https://dart-review.googlesource.com/c/sdk/+/190360 into the analyzer. * Update documentation (dart-lang/args#211) In order to add a global argument to `CommandRunner`, you need to add it through its `argParser` (reference to dart-lang/args#203) * Renamed to conform to pub.dev standards (dart-lang/args#213) * Update pubspec.yaml (dart-lang/args#215) * prep to publish 2.3.1 (dart-lang/args#218) * Add a CommandRunner example (dart-lang/args#220) * Add a command runner example * Update readme * Review comments * Require Dart 2.18, update lints, update CI, add dependabot (dart-lang/args#222) * blast_repo fixes (dart-lang/args#226) Dependabot * Bump actions/checkout from 3.1.0 to 3.2.0 (dart-lang/args#229) Bumps [actions/checkout](https://github.com/actions/checkout) from 3.1.0 to 3.2.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8...755da8c3cf115ac066823e79a1e1788f8940201b) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * blast_repo fixes (dart-lang/args#230) * blast_repo fixes auto-publish * publish from master * update the publishing script (dart-lang/args#232) * Bump actions/checkout from 3.2.0 to 3.3.0 (dart-lang/args#233) Bumps [actions/checkout](https://github.com/actions/checkout) from 3.2.0 to 3.3.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/755da8c3cf115ac066823e79a1e1788f8940201b...ac593985615ec2ede58e132d2e21d2b1cbd6127c) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump dart-lang/setup-dart from 1.3 to 1.4 (dart-lang/args#234) Bumps [dart-lang/setup-dart](https://github.com/dart-lang/setup-dart) from 1.3 to 1.4. - [Release notes](https://github.com/dart-lang/setup-dart/releases) - [Changelog](https://github.com/dart-lang/setup-dart/blob/main/CHANGELOG.md) - [Commits](https://github.com/dart-lang/setup-dart/compare/6a218f2413a3e78e9087f638a238f6b40893203d...a57a6c04cf7d4840e88432aad6281d1e125f0d46) --- updated-dependencies: - dependency-name: dart-lang/setup-dart dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Suggest command based on aliases (dart-lang/args#235) * Update README.md (dart-lang/args#236) The `allowMultiple` option of `addOption` was no longer available, so this change will correct it to `addMultiOption`. * update readme; add contributing doc (dart-lang/args#237) * update readme; add contributing doc * add the readme * Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (dart-lang/args#239) Bumps [dart-lang/setup-dart](https://github.com/dart-lang/setup-dart) from 1.4.0 to 1.5.0. - [Release notes](https://github.com/dart-lang/setup-dart/releases) - [Changelog](https://github.com/dart-lang/setup-dart/blob/main/CHANGELOG.md) - [Commits](https://github.com/dart-lang/setup-dart/compare/a57a6c04cf7d4840e88432aad6281d1e125f0d46...d6a63dab3335f427404425de0fbfed4686d93c4f) --- updated-dependencies: - dependency-name: dart-lang/setup-dart dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/checkout from 3.3.0 to 3.5.0 (dart-lang/args#238) Bumps [actions/checkout](https://github.com/actions/checkout) from 3.3.0 to 3.5.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/ac593985615ec2ede58e132d2e21d2b1cbd6127c...8f4b7f84864484a7bf31766abe9204da3cbe65b3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/args#241) Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.0 to 3.5.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/8f4b7f84864484a7bf31766abe9204da3cbe65b3...8e5e7e5ab8b370d6c329ec480221332ada57f0ab) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * added package topics to the pubspec file (dart-lang/args#242) * blast_repo fixes (dart-lang/args#243) dependabot * adjust the validation of mandatory options (dart-lang/args#246) * adjust the validation of mandatory options * typo * switch to using package:dart_flutter_team_lints (dart-lang/args#247) * switch to using package:dart_flutter_team_lints * address example lints * require dart 2.19 * update action config * Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/args#249) Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p> <blockquote> <h2>v3.5.3</h2> <h2>What's Changed</h2> <ul> <li>Fix: Checkout Issue in self hosted runner due to faulty submodule check-ins by <a href="https://github.com/megamanics"><code>@â��megamanics</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1196">actions/checkoutdart-lang/args#1196</a></li> <li>Fix typos found by codespell by <a href="https://github.com/DimitriPapadopoulos"><code>@â��DimitriPapadopoulos</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1287">actions/checkoutdart-lang/args#1287</a></li> <li>Add support for sparse checkouts by <a href="https://github.com/dscho"><code>@â��dscho</code></a> and <a href="https://github.com/dfdez"><code>@â��dfdez</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1369">actions/checkoutdart-lang/args#1369</a></li> <li>Release v3.5.3 by <a href="https://github.com/TingluoHuang"><code>@â��TingluoHuang</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1376">actions/checkoutdart-lang/args#1376</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/megamanics"><code>@â��megamanics</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1196">actions/checkoutdart-lang/args#1196</a></li> <li><a href="https://github.com/DimitriPapadopoulos"><code>@â��DimitriPapadopoulos</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1287">actions/checkoutdart-lang/args#1287</a></li> <li><a href="https://github.com/dfdez"><code>@â��dfdez</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1369">actions/checkoutdart-lang/args#1369</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v3...v3.5.3">https://github.com/actions/checkout/compare/v3...v3.5.3</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <h2>v3.5.3</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1196">Fix: Checkout fail in self-hosted runners when faulty submodule are checked-in</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1287">Fix typos found by codespell</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1369">Add support for sparse checkouts</a></li> </ul> <h2>v3.5.2</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1289">Fix api endpoint for GHES</a></li> </ul> <h2>v3.5.1</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1246">Fix slow checkout on Windows</a></li> </ul> <h2>v3.5.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1237">Add new public key for known_hosts</a></li> </ul> <h2>v3.4.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1209">Upgrade codeql actions to v2</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1210">Upgrade dependencies</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1225">Upgrade <code>@â��actions/io</code></a></li> </ul> <h2>v3.3.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1045">Implement branch list using callbacks from exec function</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1050">Add in explicit reference to private checkout options</a></li> <li>[Fix comment typos (that got added in <a href="https://redirect.github.com/actions/checkout/issues/770">dart-lang/args#770</a>)](<a href="https://redirect.github.com/actions/checkout/pull/1057">actions/checkoutdart-lang/args#1057</a>)</li> </ul> <h2>v3.2.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/942">Add GitHub Action to perform release</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/967">Fix status badge</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1002">Replace datadog/squid with ubuntu/squid Docker image</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/964">Wrap pipeline commands for submoduleForeach in quotes</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1029">Update <code>@â��actions/io</code> to 1.1.2</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1039">Upgrading version to 3.2.0</a></li> </ul> <h2>v3.1.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/939">Use <code>@â��actions/core</code> <code>saveState</code> and <code>getState</code></a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/922">Add <code>github-server-url</code> input</a></li> </ul> <h2>v3.0.2</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/770">Add input <code>set-safe-directory</code></a></li> </ul> <h2>v3.0.1</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/762">Fixed an issue where checkout failed to run in container jobs due to the new git setting <code>safe.directory</code></a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/744">Bumped various npm package versions</a></li> </ul> <h2>v3.0.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/689">Update to node 16</a></li> </ul> <h2>v2.3.1</h2> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/checkout/commit/c85c95e3d7251135ab7dc9ce3241c5835cc595a9"><code>c85c95e</code></a> Release v3.5.3 (<a href="https://redirect.github.com/actions/checkout/issues/1376">dart-lang/args#1376</a>)</li> <li><a href="https://github.com/actions/checkout/commit/d106d4669b3bfcb17f11f83f98e1cab478e9f635"><code>d106d46</code></a> Add support for sparse checkouts (<a href="https://redirect.github.com/actions/checkout/issues/1369">dart-lang/args#1369</a>)</li> <li><a href="https://github.com/actions/checkout/commit/f095bcc56b7c2baf48f3ac70d6d6782f4f553222"><code>f095bcc</code></a> Fix typos found by codespell (<a href="https://redirect.github.com/actions/checkout/issues/1287">dart-lang/args#1287</a>)</li> <li><a href="https://github.com/actions/checkout/commit/47fbe2df0ad0e27efb67a70beac3555f192b062f"><code>47fbe2d</code></a> Fix: Checkout fail in self-hosted runners when faulty submodule are checked-i...</li> <li>See full diff in <a href="https://github.com/actions/checkout/compare/8e5e7e5ab8b370d6c329ec480221332ada57f0ab...c85c95e3d7251135ab7dc9ce3241c5835cc595a9">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/checkout&package-manager=github_actions&previous-version=3.5.2&new-version=3.5.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> * Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/args#254) Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 3.6.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p> <blockquote> <h2>v3.6.0</h2> <h2>What's Changed</h2> <ul> <li>Mark test scripts with Bash'isms to be run via Bash by <a href="https://github.com/dscho"><code>@â��dscho</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1377">actions/checkoutdart-lang/args#1377</a></li> <li>Add option to fetch tags even if fetch-depth > 0 by <a href="https://github.com/RobertWieczoreck"><code>@â��RobertWieczoreck</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/579">actions/checkoutdart-lang/args#579</a></li> <li>Release 3.6.0 by <a href="https://github.com/luketomlinson"><code>@â��luketomlinson</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1437">actions/checkoutdart-lang/args#1437</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/RobertWieczoreck"><code>@â��RobertWieczoreck</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/579">actions/checkoutdart-lang/args#579</a></li> <li><a href="https://github.com/luketomlinson"><code>@â��luketomlinson</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1437">actions/checkoutdart-lang/args#1437</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v3.5.3...v3.6.0">https://github.com/actions/checkout/compare/v3.5.3...v3.6.0</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <h2>v3.6.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1377">Fix: Mark test scripts with Bash'isms to be run via Bash</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/579">Add option to fetch tags even if fetch-depth > 0</a></li> </ul> <h2>v3.5.3</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1196">Fix: Checkout fail in self-hosted runners when faulty submodule are checked-in</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1287">Fix typos found by codespell</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1369">Add support for sparse checkouts</a></li> </ul> <h2>v3.5.2</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1289">Fix api endpoint for GHES</a></li> </ul> <h2>v3.5.1</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1246">Fix slow checkout on Windows</a></li> </ul> <h2>v3.5.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1237">Add new public key for known_hosts</a></li> </ul> <h2>v3.4.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1209">Upgrade codeql actions to v2</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1210">Upgrade dependencies</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1225">Upgrade <code>@â��actions/io</code></a></li> </ul> <h2>v3.3.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1045">Implement branch list using callbacks from exec function</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1050">Add in explicit reference to private checkout options</a></li> <li>[Fix comment typos (that got added in <a href="https://redirect.github.com/actions/checkout/issues/770">dart-lang/args#770</a>)](<a href="https://redirect.github.com/actions/checkout/pull/1057">actions/checkoutdart-lang/args#1057</a>)</li> </ul> <h2>v3.2.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/942">Add GitHub Action to perform release</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/967">Fix status badge</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1002">Replace datadog/squid with ubuntu/squid Docker image</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/964">Wrap pipeline commands for submoduleForeach in quotes</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1029">Update <code>@â��actions/io</code> to 1.1.2</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1039">Upgrading version to 3.2.0</a></li> </ul> <h2>v3.1.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/939">Use <code>@â��actions/core</code> <code>saveState</code> and <code>getState</code></a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/922">Add <code>github-server-url</code> input</a></li> </ul> <h2>v3.0.2</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/770">Add input <code>set-safe-directory</code></a></li> </ul> <h2>v3.0.1</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/762">Fixed an issue where checkout failed to run in container jobs due to the new git setting <code>safe.directory</code></a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/744">Bumped various npm package versions</a></li> </ul> <h2>v3.0.0</h2> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744"><code>f43a0e5</code></a> Release 3.6.0 (<a href="https://redirect.github.com/actions/checkout/issues/1437">dart-lang/args#1437</a>)</li> <li><a href="https://github.com/actions/checkout/commit/7739b9ba2efcda9dde65ad1e3c2dbe65b41dfba7"><code>7739b9b</code></a> Add option to fetch tags even if fetch-depth > 0 (<a href="https://redirect.github.com/actions/checkout/issues/579">dart-lang/args#579</a>)</li> <li><a href="https://github.com/actions/checkout/commit/96f53100ba2a5449eb71d2e6604bbcd94b9449b5"><code>96f5310</code></a> Mark test scripts with Bash'isms to be run via Bash (<a href="https://redirect.github.com/actions/checkout/issues/1377">dart-lang/args#1377</a>)</li> <li>See full diff in <a href="https://github.com/actions/checkout/compare/c85c95e3d7251135ab7dc9ce3241c5835cc595a9...f43a0e5ff2bd294095638e18286ca9a3d1956744">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/checkout&package-manager=github_actions&previous-version=3.5.3&new-version=3.6.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> * Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/args#257) Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.1.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p> <blockquote> <h2>v4.1.0</h2> <h2>What's Changed</h2> <ul> <li>Update README.md for V4 by <a href="https://github.com/sivapalan"><code>@â��sivapalan</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1452">actions/checkoutdart-lang/args#1452</a></li> <li>Add support for partial checkout filters by <a href="https://github.com/finleygn"><code>@â��finleygn</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1396">actions/checkoutdart-lang/args#1396</a></li> <li>Prepare 4.1.0 release by <a href="https://github.com/cory-miller"><code>@â��cory-miller</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1496">actions/checkoutdart-lang/args#1496</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/sivapalan"><code>@â��sivapalan</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1452">actions/checkoutdart-lang/args#1452</a></li> <li><a href="https://github.com/finleygn"><code>@â��finleygn</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1396">actions/checkoutdart-lang/args#1396</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v4.0.0...v4.1.0">https://github.com/actions/checkout/compare/v4.0.0...v4.1.0</a></p> <h2>v4.0.0</h2> <h2>What's Changed</h2> <ul> <li>Update default runtime to node20 by <a href="https://github.com/takost"><code>@â��takost</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1436">actions/checkoutdart-lang/args#1436</a></li> <li>Support fetching without the --progress option by <a href="https://github.com/simonbaird"><code>@â��simonbaird</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1067">actions/checkoutdart-lang/args#1067</a></li> <li>Release 4.0.0 by <a href="https://github.com/takost"><code>@â��takost</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1447">actions/checkoutdart-lang/args#1447</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/takost"><code>@â��takost</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1436">actions/checkoutdart-lang/args#1436</a></li> <li><a href="https://github.com/simonbaird"><code>@â��simonbaird</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1067">actions/checkoutdart-lang/args#1067</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v3...v4.0.0">https://github.com/actions/checkout/compare/v3...v4.0.0</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <h2>v4.1.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1396">Add support for partial checkout filters</a></li> </ul> <h2>v4.0.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1067">Support fetching without the --progress option</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1436">Update to node20</a></li> </ul> <h2>v3.6.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1377">Fix: Mark test scripts with Bash'isms to be run via Bash</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/579">Add option to fetch tags even if fetch-depth > 0</a></li> </ul> <h2>v3.5.3</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1196">Fix: Checkout fail in self-hosted runners when faulty submodule are checked-in</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1287">Fix typos found by codespell</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1369">Add support for sparse checkouts</a></li> </ul> <h2>v3.5.2</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1289">Fix api endpoint for GHES</a></li> </ul> <h2>v3.5.1</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1246">Fix slow checkout on Windows</a></li> </ul> <h2>v3.5.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1237">Add new public key for known_hosts</a></li> </ul> <h2>v3.4.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1209">Upgrade codeql actions to v2</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1210">Upgrade dependencies</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1225">Upgrade <code>@â��actions/io</code></a></li> </ul> <h2>v3.3.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/1045">Implement branch list using callbacks from exec function</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1050">Add in explicit reference to private checkout options</a></li> <li>[Fix comment typos (that got added in <a href="https://redirect.github.com/actions/checkout/issues/770">dart-lang/args#770</a>)](<a href="https://redirect.github.com/actions/checkout/pull/1057">actions/checkoutdart-lang/args#1057</a>)</li> </ul> <h2>v3.2.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/942">Add GitHub Action to perform release</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/967">Fix status badge</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1002">Replace datadog/squid with ubuntu/squid Docker image</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/964">Wrap pipeline commands for submoduleForeach in quotes</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1029">Update <code>@â��actions/io</code> to 1.1.2</a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/1039">Upgrading version to 3.2.0</a></li> </ul> <h2>v3.1.0</h2> <ul> <li><a href="https://redirect.github.com/actions/checkout/pull/939">Use <code>@â��actions/core</code> <code>saveState</code> and <code>getState</code></a></li> <li><a href="https://redirect.github.com/actions/checkout/pull/922">Add <code>github-server-url</code> input</a></li> </ul> <h2>v3.0.2</h2> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/checkout/commit/8ade135a41bc03ea155e62e844d188df1ea18608"><code>8ade135</code></a> Prepare 4.1.0 release (<a href="https://redirect.github.com/actions/checkout/issues/1496">dart-lang/args#1496</a>)</li> <li><a href="https://github.com/actions/checkout/commit/c533a0a4cfc4962971818edcfac47a2899e69799"><code>c533a0a</code></a> Add support for partial checkout filters (<a href="https://redirect.github.com/actions/checkout/issues/1396">dart-lang/args#1396</a>)</li> <li><a href="https://github.com/actions/checkout/commit/72f2cec99f417b1a1c5e2e88945068983b7965f9"><code>72f2cec</code></a> Update README.md for V4 (<a href="https://redirect.github.com/actions/checkout/issues/1452">dart-lang/args#1452</a>)</li> <li><a href="https://github.com/actions/checkout/commit/3df4ab11eba7bda6032a0b82a6bb43b11571feac"><code>3df4ab1</code></a> Release 4.0.0 (<a href="https://redirect.github.com/actions/checkout/issues/1447">dart-lang/args#1447</a>)</li> <li><a href="https://github.com/actions/checkout/commit/8b5e8b768746b50394015010d25e690bfab9dfbc"><code>8b5e8b7</code></a> Support fetching without the --progress option (<a href="https://redirect.github.com/actions/checkout/issues/1067">dart-lang/args#1067</a>)</li> <li><a href="https://github.com/actions/checkout/commit/97a652b80035363df47baee5031ec8670b8878ac"><code>97a652b</code></a> Update default runtime to node20 (<a href="https://redirect.github.com/actions/checkout/issues/1436">dart-lang/args#1436</a>)</li> <li>See full diff in <a href="https://github.com/actions/checkout/compare/f43a0e5ff2bd294095638e18286ca9a3d1956744...8ade135a41bc03ea155e62e844d188df1ea18608">compare view<…
- Loading branch information