Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge package:args #2

Merged
merged 283 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
283 commits
Select commit Hold shift + click to select a range
114aae8
Split the args tests into a couple of smaller suites.
munificent Jan 9, 2013
d8ca331
Add command support to args.
munificent Jan 11, 2013
7c29884
Added documentation links to all of the pkg packages hosted on api.da…
amouravski Feb 12, 2013
537eafd
Update documentation links to point to the correct URLs.
dgrove Feb 15, 2013
2519570
Remove deprecated Strings class.
floitschG Feb 19, 2013
f6eda2a
Fix use of stringbuffer in pkg/args
sigmundch Feb 22, 2013
eeadaa7
Change new List(n) to return fixed length list.
lrhn Feb 27, 2013
641dc5f
Make arg parser return growable list of rest arguments.
lrhn Feb 27, 2013
ae5319c
Make List.from and Iterable.toList default to not growable.
lrhn Mar 4, 2013
fc9e547
Rename XMatching to XWhere.
floitschG Mar 12, 2013
9a6a650
pkg/args Option should be more strict about names and abbreviations
kevmoo Mar 14, 2013
3303a3e
Moved pkg pubspecs to use dev_dependencies where appropriate
kevmoo Mar 20, 2013
28ddb14
Remove Collection, Collections and clean up List/Set/Queue implementa…
Apr 12, 2013
0a2d0bb
add installation instructions to pkg packages
sethladd Apr 19, 2013
7eb3389
Allow passing in an existing ArgParser for a command.
munificent May 21, 2013
3522e9e
Switch from DRT to content shell.
May 29, 2013
1cd6f73
Moved the Option class to its own file in anticipation of working on it.
amouravski Jun 17, 2013
f048085
Added new style of tests for parser.
amouravski Jun 19, 2013
036bc57
Added the continueParsing option to ArgParser.
amouravski Jun 24, 2013
691f776
pkg/args: expose immutable collections
kevmoo Jul 23, 2013
d121d77
Copyedit pass over args library description; fixed some example code
kwalrath Sep 11, 2013
08ecc33
Add support for hidden options to pkg/args.
nex3 Sep 24, 2013
fd0e730
Remove uses of Options from pkg, samples, tests, and third_party dire…
whesse Oct 30, 2013
e0e769d
add versions and constraints for packages and samples
Nov 6, 2013
f5d6a32
Revert "add versions and constraints for packages and samples"
Nov 6, 2013
6d5eb7c
Re-land r29957 (add versions and constraints for packages and samples…
dgrove Nov 6, 2013
a47b50d
Combine unmodifiable_collection package into collection_helpers.
lrhn Nov 19, 2013
778cbe2
pkg/args: a bunch of test cleanup
kevmoo Nov 26, 2013
c06d30c
Add a [hide] argument to [ArgParser.addFlag].
nex3 Nov 26, 2013
e9b1ccd
pkg/args: updated args dependency on collection_helpers to >= 0.9.1
kevmoo Dec 5, 2013
0749dc4
Create associated packages for the dart:collection and dart:async libs.
lrhn Dec 19, 2013
e78fcf3
flagging pkg/args and pkg/logging as dev+1
kevmoo Dec 27, 2013
189e021
pkg/args: adding LICENSE file
kevmoo Dec 27, 2013
9b2fc9a
Ignore hidden options when calculating usage columns.
munificent Mar 19, 2014
0ffd977
Move allowTrailingOptions into ArgParser.
munificent May 6, 2014
9640521
Modernize the docs for args.
munificent May 12, 2014
18c2457
Fix typo in readme.
munificent Jul 2, 2014
880aac1
Allow defining a help string for an option's parameter value.
munificent Jul 7, 2014
2751f59
Add .wasParsed() to ArgResults.
munificent Jul 17, 2014
21bad91
Remove documentation links for repo packages.
nex3 Jul 24, 2014
957576a
Update dart:collection to version 1.0.0
lrhn Aug 22, 2014
10f96f2
Clean up after r39484 and r39486.
nex3 Aug 26, 2014
cde27ce
Fix args README
srawlins Oct 7, 2014
fe1607c
Swap getUsage() for get usage in args package
srawlins Oct 7, 2014
4ec07b4
Remove "-dev" to publish args package.
munificent Oct 31, 2014
2fd3a03
Add an ArgResults.original getter.
nex3 Dec 11, 2014
a9f632b
Add a CommandRunner class for dispatching commands to args.
nex3 Dec 17, 2014
80098b1
Fix the built-in help command in args.
nex3 Dec 17, 2014
e4fedb5
Add gitignore, status, and codereview files.
nex3 Dec 19, 2014
adc77f6
Don't mark tests as failing on the browser.
nex3 Dec 19, 2014
6b899ed
fix dependency on unittest
kevmoo Jan 14, 2015
75d2837
format code, removed unused variables and deprecated usage
kevmoo Jan 14, 2015
672a8c2
Fixed implementation of ArgResults.options to really use Iterable<Str…
jacob314 Jan 23, 2015
21f87c3
Explicit example of parsing args from main
sethladd Feb 10, 2015
819da54
reflowing
sethladd Feb 10, 2015
cff4fda
Update CHANGELOG and pubspec version.
nex3 Feb 11, 2015
7b24b42
Are you a fan of method cascades?
sethladd Feb 13, 2015
fc6dd11
Fix example
Fox32 Feb 15, 2015
c9b0e61
Merge pull request dart-lang/args#7 from Fox32/patch-1
sethladd Feb 15, 2015
06b4038
Fixed missing comma in test and updated README syntax
kevmoo Feb 17, 2015
dc95a41
Remove dependency on 'collection'
azenla Feb 18, 2015
cc6c84f
Update the CHANGELOG and pubspec.
nex3 Feb 18, 2015
a9fa4d4
Merge branch 'no-deps'
nex3 Feb 18, 2015
b8840b0
Fix the CHANGELOG.
nex3 Feb 18, 2015
d2f5dce
Parse comma-separated multiple values.
nex3 Mar 5, 2015
5bbc74f
Upgrade to test 0.12.0.
nex3 May 21, 2015
6d87234
Add support for separators.
nex3 May 21, 2015
d3f680a
Follow getopt in parsing option-like values.
nex3 Jun 8, 2015
32e5675
Fix the version number in the changelog.
nex3 Jun 9, 2015
f46d26f
Use the new test runner on the bots.
nex3 Jul 16, 2015
744fbc1
Get rid of all the library tags.
nex3 Jan 13, 2016
6e6d9f2
Don't truncate multi-line command descriptions.
nex3 Jan 20, 2016
d9a6755
Fix 0.13.3+1 version in CHANGELOG
srawlins Feb 2, 2016
5003399
Fix dart-lang/args#39 with docs change
srawlins Feb 2, 2016
899d73c
Merge pull request dart-lang/args#43 from srawlins/fix-version
nex3 Feb 2, 2016
d5f5eeb
Merge remote-tracking branch 'origin/master' into srawlins.fix-39
nex3 Feb 2, 2016
b35f574
Add a CHANGELOG entry and bump the version.
nex3 Feb 2, 2016
0b16c14
Merge branch 'srawlins.fix-39'
nex3 Feb 2, 2016
774de6e
Document allowTrailingOptions in code
kasperpeulen Feb 6, 2016
36c320d
Update the pubspec and changelog.
nex3 Feb 8, 2016
1a69a95
Merge branch 'kasperpeulen.patch-1'
nex3 Feb 8, 2016
b9049a8
replace deprecated getUsage() method
joseluis Feb 28, 2016
b9774a3
Merge pull request dart-lang/args#46 from joseluis/patch-2
nex3 Feb 29, 2016
575c880
Cut a release for the fix in b9049a8.
nex3 Feb 29, 2016
4b7a45b
Make it strong mode clean.
munificent Mar 3, 2016
8aed5d9
README fixes
t6iz8t48 Mar 5, 2016
c84cb86
Merge pull request dart-lang/args#47 from ArgentiApparatus/master
nex3 Mar 5, 2016
975c67b
Release the changes in dart-lang/args#47.
nex3 Mar 5, 2016
cc05e9c
Add an explicit distinction between a command's description and summary.
nex3 Mar 17, 2016
18fee13
Ensure that lists are reified.
nex3 May 5, 2016
b6a5600
UsageException isn't called UsageError.
nex3 May 16, 2016
e612d15
Allow command ArgParsers to be overridden.
nex3 Jul 22, 2016
9a107d1
Print the proper usage in CommandRunner. (dart-lang/args#53)
nex3 Sep 30, 2016
6bfe39e
Fix an analysis hint. (dart-lang/args#56)
nex3 Oct 26, 2016
946a28c
Print command help for "bin --help command" (dart-lang/args#55)
nex3 Nov 2, 2016
971a497
Support command return value forwarding. (dart-lang/args#59)
nex3 Nov 11, 2016
db73ee0
Fix return value with latest change in pkg/test (dart-lang/args#63)
kevmoo Feb 10, 2017
62f0525
Add Travic-CI support
kevmoo Apr 6, 2017
b647b8c
dartfmt
kevmoo Apr 6, 2017
f43d967
Use the recommended name for analysis_options
kevmoo Apr 7, 2017
891ad3c
Document that Command.argParser can be overridden. (dart-lang/args#72)
nex3 Jun 8, 2017
6907fde
Add ArgParser.allowAnything(). (dart-lang/args#71)
nex3 Jun 14, 2017
d6f6061
Make allowTrailingOptions default to `false`. (dart-lang/args#66)
nex3 Jun 14, 2017
cc02ee6
Update .travis.yml: allows failures in dartfmt dev (dart-lang/args#75)
kevmoo Jul 18, 2017
81b9bd8
Remove pkg/test override
kevmoo Sep 21, 2017
dc68fad
Fix a fuzzy arrow warning (dart-lang/args#79)
nex3 Oct 3, 2017
8602d0a
Fix unused import warning in tests. (dart-lang/args#80)
leafpetersen Oct 19, 2017
0142dd2
Take Iterables rather than Lists where possible (dart-lang/args#83)
nex3 Nov 27, 2017
ed83557
Type the callback parameter to addOption as Function (dart-lang/args#84)
nex3 Dec 6, 2017
de42900
Type Command.run()'s return value as FutureOr<T> (dart-lang/args#87)
nex3 Jan 26, 2018
d53daf0
Improve the documentation option values
nex3 Feb 20, 2018
476ddca
Deprecate upper-case constants in favor of lowercase
nex3 Feb 20, 2018
5fdcdb5
Make Option's field names match addOption's parameters
nex3 Feb 20, 2018
1686213
Merge pull request dart-lang/args#92 from dart-lang/cleanup
nex3 Feb 21, 2018
2963e03
Reformat tests with the latest dartfmt
nex3 Feb 21, 2018
301afab
Add a separate addMultiOption() method
nex3 Feb 21, 2018
906cb8e
Merge pull request dart-lang/args#93 from dart-lang/add-multi-option
nex3 Feb 22, 2018
2195102
Fix addMultiOption() and addOption(allowMultiple) usage (dart-lang/ar…
nex3 Feb 23, 2018
984a57c
Narrow the SDK constraint to require FutureOr (dart-lang/args#89)
nex3 Apr 9, 2018
cca0f82
Remove lints (dart-lang/args#98)
nex3 Apr 9, 2018
90c1e0b
Display the default values for options with allowedHelp specified (da…
nex3 Apr 24, 2018
a9c46a0
pubspec conventions dart-lang/site-wwwdart-lang/args#825
bcko May 24, 2018
491683a
Update .gitignore to new `dart_tool` pub cache
bcko May 24, 2018
ef2ed38
Merge pull request dart-lang/args#102 from bcko/patch-2
munificent May 24, 2018
0eedc49
Merge pull request dart-lang/args#101 from bcko/patch-1
munificent May 24, 2018
d5dbb97
Update README to use addMultiOption (dart-lang/args#104)
srawlins Jul 18, 2018
cf6ff32
chore: set max SDK version to <3.0.0 (dart-lang/args#106)
chalin Jul 18, 2018
a47ad83
Add optional wrapping of text for usage messages.
gspencergoog Jul 11, 2018
22995a5
Review changes
gspencergoog Aug 2, 2018
99be7b0
Tweak the new word wrapping and get ready to release it.
munificent Aug 2, 2018
be4b4fb
Document isWhitespace().
munificent Aug 2, 2018
2364fe7
Incorporate review feedback.
munificent Aug 2, 2018
399a612
Merge pull request dart-lang/args#107 from dart-lang/prep-line-length
munificent Aug 2, 2018
559f5cb
Add support for wrapping command descriptions and other help text.
gspencergoog Aug 3, 2018
1fc2d0a
Review changes.
gspencergoog Sep 12, 2018
69b2455
Merge pull request dart-lang/args#108 from gspencergoog/wrap_commands
munificent Sep 21, 2018
1c1149b
Bump version to publish.
munificent Nov 8, 2018
ba6e662
Merge pull request dart-lang/args#110 from dart-lang/bump
munificent Nov 8, 2018
c913257
Enable and fix a number of standard lints and deprecated member use (…
kevmoo Dec 18, 2018
a598954
All deprecated usage from this package (dart-lang/args#112)
kevmoo Jan 25, 2019
8b7b4d7
Support usageLineLength in CommandRunner (dart-lang/args#115)
tvolkert Mar 14, 2019
8ed2321
dartfmt
kevmoo Apr 12, 2019
f09e5d9
fix latest pedantic lints
kevmoo May 10, 2019
764f494
Fix deprecated URLs (dart-lang/args#117)
kevmoo May 31, 2019
14d1918
Prepare to release 1.5.2 (dart-lang/args#118)
kevmoo May 31, 2019
33550f6
Remove linter rules included in pedantic 1.8.0
srawlins Jul 29, 2019
2f30e8e
Merge pull request dart-lang/args#121 from srawlins/ana-options
srawlins Jul 29, 2019
b2f4225
remove optional `new`s
pq Sep 12, 2019
28b7e5e
Merge pull request dart-lang/args#122 from dart-lang/pq-drop-news
pq Sep 12, 2019
57068b5
Fix newly enforced package:pedantic lints (dart-lang/args#126)
natebosch Dec 6, 2019
3fba62e
Fix performance issues due to list.removeAt(0), which makes parsing O…
davidmorgan Jan 31, 2020
4bbe9c3
Address review comments.
davidmorgan Feb 6, 2020
d3c3976
Merge pull request dart-lang/args#130 from davidmorgan/improve-perfor…
davidmorgan Feb 6, 2020
eaf1d75
address an issue when using ArgParser.allowAnything() with CommandRun…
devoncarew Feb 26, 2020
8345064
With benchmark.
davidmorgan Feb 28, 2020
efc652f
Improve parse speed by switching from regexps to simple string operat…
davidmorgan Feb 28, 2020
1f54c67
prep for publishing 1.5.3 (dart-lang/args#133)
devoncarew Feb 28, 2020
e8e6b8f
Address review comments.
davidmorgan Feb 29, 2020
2902565
Update CHANGELOG.md
davidmorgan Mar 3, 2020
a4d869d
Merge pull request dart-lang/args#135 from davidmorgan/faster-parsing
davidmorgan Mar 3, 2020
fdd98e1
Enforce and fix comment_references lint (dart-lang/args#138)
natebosch Mar 13, 2020
779215e
Reference CommandRunner from addCommand docs (dart-lang/args#139)
natebosch Mar 13, 2020
47add09
Fix parsing: re-allow underscore in long names. (dart-lang/args#141)
davidmorgan Mar 16, 2020
0af1175
Changelog for underscore fix, prepare to publish (dart-lang/args#142)
natebosch Mar 16, 2020
c29ccda
Remove extra blank lines between options (dart-lang/args#137)
natebosch Mar 16, 2020
857fd55
Remove help form the list of commands in usage (dart-lang/args#140)
natebosch Mar 16, 2020
f84b80a
Prepare for publish (dart-lang/args#143)
natebosch Mar 17, 2020
4d9ee04
Clean up some doc comments and code style (dart-lang/args#147)
natebosch Jun 23, 2020
c4bf4c3
Update http URLs to https (dart-lang/args#152)
kevmoo Oct 9, 2020
6fb9c35
Remove unused dart:async imports. (dart-lang/args#157)
srawlins Nov 2, 2020
4088d83
Improve the docs for CommandRunner (dart-lang/args#148)
bsutton Nov 5, 2020
1f5c78b
Migrate to null safety (dart-lang/args#159)
jakemac53 Nov 6, 2020
05a7d86
Remove already deprecated APIs (dart-lang/args#165)
natebosch Nov 6, 2020
7047a06
Use Null as return type for HelpCommand.run (dart-lang/args#164)
natebosch Nov 6, 2020
33da436
Bump to 2.0.0 in anticipation of release. (dart-lang/args#166)
munificent Dec 1, 2020
081a06e
Remove ignore for deprecated usage (dart-lang/args#167)
natebosch Dec 10, 2020
fb6df85
Give a specific function type for callback (dart-lang/args#168)
natebosch Dec 10, 2020
9705f04
Fix link to use https (dart-lang/args#174)
Fox32 Dec 11, 2020
5511029
Re-expose the class OptionType (dart-lang/args#175)
natebosch Dec 16, 2020
4acaafa
Refactor usage.dart (dart-lang/args#169)
natebosch Dec 16, 2020
971e62c
Deprecate methods name get* (dart-lang/args#172)
natebosch Dec 16, 2020
bd0fd38
Migrate to GitHub Actions (dart-lang/args#176)
athomas Dec 17, 2020
79e61e0
Add a test for passing allowedHelp without allowed (dart-lang/args#170)
natebosch Dec 17, 2020
1bcd1d3
stable null safety release (dart-lang/args#180)
jakemac53 Feb 5, 2021
5b58d6d
Add support for argument name aliases (dart-lang/args#182)
jakemac53 Feb 18, 2021
da1ea22
Added mandatory (or required) option (dart-lang/args#177)
PoloLacoste Feb 18, 2021
7e6d31d
Use --fatal-infos when analyzing on CI (dart-lang/args#184)
natebosch Mar 19, 2021
44195c8
Enable lint prefer_typing_uninitialized_variables (dart-lang/args#187)
natebosch Mar 23, 2021
543ecd3
Split parse* methods to avoid duplicate work (dart-lang/args#185)
natebosch Mar 23, 2021
981f71b
Use latest setup action (dart-lang/args#188)
kevmoo Mar 30, 2021
14abb42
Update LICENSE (dart-lang/args#189)
franklinyow Apr 1, 2021
a69409a
publish 2.1.0 (dart-lang/args#191)
jakemac53 Apr 22, 2021
cc2a257
clean up the sdk constraint and dep overrides (dart-lang/args#192)
jakemac53 Apr 22, 2021
70b37d6
Fix newly enforced lint (dart-lang/args#193)
kevmoo Apr 26, 2021
b8a7efa
fix a null assertion error when there are missing mandatory args in c…
jakemac53 Jun 1, 2021
3d2da96
Dart format with latest SDK (dart-lang/args#207)
kevmoo Jul 11, 2021
11d3af1
show similar commands with an edit distance of 2 or less (dart-lang/a…
jakemac53 Jul 21, 2021
fc16bf9
Add ability to group commands by category in usage (dart-lang/args#202)
guidezpl Jul 23, 2021
20ddd2b
Move from pedantic to lints package (dart-lang/args#208)
natebosch Jul 23, 2021
52f3d90
Fix pre-existing HintCode.UNNECESSARY_TYPE_CHECK_TRUE (dart-lang/args…
scheglov Sep 1, 2021
9f806ae
Update documentation (dart-lang/args#211)
i0x0 Nov 15, 2021
171491e
Renamed to conform to pub.dev standards (dart-lang/args#213)
myConsciousness Apr 7, 2022
1dad78b
Update pubspec.yaml (dart-lang/args#215)
devoncarew Apr 18, 2022
6562bc6
prep to publish 2.3.1 (dart-lang/args#218)
devoncarew May 11, 2022
367c15e
Add a CommandRunner example (dart-lang/args#220)
liamappelbe Aug 5, 2022
6cc9642
Require Dart 2.18, update lints, update CI, add dependabot (dart-lang…
kevmoo Oct 20, 2022
6aca3b9
blast_repo fixes (dart-lang/args#226)
devoncarew Nov 9, 2022
1fafebc
Bump actions/checkout from 3.1.0 to 3.2.0 (dart-lang/args#229)
dependabot[bot] Jan 3, 2023
a9e776b
blast_repo fixes (dart-lang/args#230)
devoncarew Jan 19, 2023
40160be
update the publishing script (dart-lang/args#232)
devoncarew Jan 25, 2023
85b2fcf
Bump actions/checkout from 3.2.0 to 3.3.0 (dart-lang/args#233)
dependabot[bot] Feb 1, 2023
93f09a5
Bump dart-lang/setup-dart from 1.3 to 1.4 (dart-lang/args#234)
dependabot[bot] Feb 1, 2023
f4083b2
Suggest command based on aliases (dart-lang/args#235)
sigurdm Feb 9, 2023
5cb19f0
Update README.md (dart-lang/args#236)
naoty Feb 14, 2023
2f664c8
update readme; add contributing doc (dart-lang/args#237)
devoncarew Mar 14, 2023
ea2a52e
Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (dart-lang/args#239)
dependabot[bot] Apr 3, 2023
04f20b4
Bump actions/checkout from 3.3.0 to 3.5.0 (dart-lang/args#238)
dependabot[bot] Apr 3, 2023
b7c1dac
Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/args#241)
dependabot[bot] May 2, 2023
0e3c6ca
added package topics to the pubspec file (dart-lang/args#242)
devoncarew May 3, 2023
80864b0
blast_repo fixes (dart-lang/args#243)
devoncarew May 12, 2023
235aa6b
adjust the validation of mandatory options (dart-lang/args#246)
devoncarew May 31, 2023
8a3b510
switch to using package:dart_flutter_team_lints (dart-lang/args#247)
devoncarew May 31, 2023
82092ba
Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/args#249)
dependabot[bot] Jul 1, 2023
d4c3fc8
Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/args#254)
dependabot[bot] Sep 1, 2023
b95e718
Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/args#257)
dependabot[bot] Oct 1, 2023
7e4ff7d
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (dart-lang/args#256)
dependabot[bot] Oct 2, 2023
a25b8ef
Bump actions/checkout from 4.1.0 to 4.1.1 (dart-lang/args#259)
dependabot[bot] Nov 1, 2023
1f1f655
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (dart-lang/args#258)
dependabot[bot] Nov 1, 2023
0589549
Add missing curly braces in README.md (dart-lang/args#261)
akaiser Jan 23, 2024
14a8be0
Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (dart-lang/args#263)
dependabot[bot] Feb 1, 2024
a6b3634
Introduce new typed `ArgResults` `flag(String)`, `option(String)`, an…
devoncarew Mar 15, 2024
e730f6e
Bump actions/checkout from 4.1.1 to 4.1.2 (dart-lang/args#266)
dependabot[bot] Apr 1, 2024
a505ea0
rev to 2.5.0 and prep to publish (dart-lang/args#267)
devoncarew Apr 11, 2024
de170f5
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (dart-lang/args#268)
dependabot[bot] Apr 15, 2024
38b1c25
Update to latest lints, require Dart 3.3 (dart-lang/args#270)
kevmoo Apr 17, 2024
636b042
Bump actions/checkout from 4.1.2 to 4.1.4 (dart-lang/args#271)
dependabot[bot] May 1, 2024
43f8150
blast_repo fixes (dart-lang/args#274)
devoncarew May 3, 2024
a43221a
bump lints dep and fix (dart-lang/args#275)
kevmoo May 28, 2024
339d98f
Bump actions/checkout from 4.1.4 to 4.1.6 in the github-actions group…
dependabot[bot] Jun 1, 2024
1d5606b
Bump the github-actions group with 2 updates (dart-lang/args#278)
dependabot[bot] Jul 1, 2024
feec91d
Fix angle brackets in doc comments (dart-lang/args#281)
kevmoo Aug 26, 2024
272f175
Add argument name when throwing a `ArgParserException`. (dart-lang/ar…
fa0311 Sep 30, 2024
315f7f9
Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group…
dependabot[bot] Oct 1, 2024
2d6cddf
Merge package:args into shared core repository
mosuem Oct 11, 2024
5560a05
Fix workflows
mosuem Oct 11, 2024
4896f8a
Fix workflows again
mosuem Oct 11, 2024
00d89bc
Rev pubspec version
mosuem Oct 11, 2024
e6b4d3a
Fix tags regex
mosuem Oct 11, 2024
7137af2
Add readme
mosuem Oct 11, 2024
6ea8a85
Add label workflow
mosuem Oct 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Dependabot configuration file.
# See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates
version: 2

updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
labels:
- autosubmit
groups:
github-actions:
patterns:
- "*"
5 changes: 5 additions & 0 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Configuration for .github/workflows/pull_request_label.yml.
mosuem marked this conversation as resolved.
Show resolved Hide resolved

"package-args":
- changed-files:
- any-glob-to-any-file: 'pkgs/args/**'
72 changes: 72 additions & 0 deletions .github/workflows/args.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Dart CI

on:
# Run CI on pushes to the main branch, and on PRs against main.
push:
branches: [ main ]
paths:
- '.github/workflows/args.yaml'
- 'pkgs/args/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/args.yaml'
- 'pkgs/args/**'
schedule:
- cron: "0 0 * * 0"
env:
PUB_ENVIRONMENT: bot.github

defaults:
mosuem marked this conversation as resolved.
Show resolved Hide resolved
run:
working-directory: pkgs/args/

jobs:
# Check code formatting and static analysis on a single OS (linux)
# against Dart dev.
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Check formatting
if: always() && steps.install.outcome == 'success'
run: dart format --output=none --set-exit-if-changed .
- name: Analyze code
run: dart analyze --fatal-infos
if: always() && steps.install.outcome == 'success'

# Run tests on a matrix consisting of three dimensions:
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
# 2. release channel: dev, (stable)
test:
needs: analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
sdk: ['3.3', dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test --platform vm
if: always() && steps.install.outcome == 'success'
- name: Run Chrome tests
run: dart test --platform chrome
if: always() && steps.install.outcome == 'success'
14 changes: 14 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# A CI configuration to auto-publish pub packages.

name: Publish

on:
pull_request:
branches: [ main ]
push:
tags: [ '[A-z]+-v[0-9]+.[0-9]+.[0-9]+' ]

jobs:
publish:
if: ${{ github.repository_owner == 'dart-lang' }}
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ This repository is home to various Dart packages under the [dart.dev](https://pu

| Package | Description | Version |
|---|---|---|
| [args](pkgs/args/) | Library for defining parsers for parsing raw command-line arguments into a set
of options and values. | [![pub package](https://img.shields.io/pub/v/args.svg)](https://pub.dev/packages/args) |

## Publishing automation

For information about our publishing automation and release process, see
https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our
[contributing](CONTRIBUTING.md) page.
[contributing](CONTRIBUTING.md) page.
16 changes: 16 additions & 0 deletions pkgs/args/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Don’t commit the following directories created by pub.
.buildlog
.pub/
.dart_tool/
build/
packages
.packages

# Or the files created by dart2js.
*.dart.js
*.js_
*.js.deps
*.js.map

# Include when developing application packages.
pubspec.lock
3 changes: 3 additions & 0 deletions pkgs/args/.test_config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"test_package": true
}
Loading