-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Generalize main annotations #13727
Generalize main annotations #13727
Commits on Feb 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3673ccf - Browse repository at this point
Copy the full SHA 3673ccfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 65785d4 - Browse repository at this point
Copy the full SHA 65785d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9db3d0 - Browse repository at this point
Copy the full SHA e9db3d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d3c199 - Browse repository at this point
Copy the full SHA 5d3c199View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6161b9b - Browse repository at this point
Copy the full SHA 6161b9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 959aff9 - Browse repository at this point
Copy the full SHA 959aff9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81c88c1 - Browse repository at this point
Copy the full SHA 81c88c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fbdf66 - Browse repository at this point
Copy the full SHA 2fbdf66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 098fd27 - Browse repository at this point
Copy the full SHA 098fd27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 754a6d0 - Browse repository at this point
Copy the full SHA 754a6d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c8210d5 - Browse repository at this point
Copy the full SHA c8210d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for b727dab - Browse repository at this point
Copy the full SHA b727dabView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad291f2 - Browse repository at this point
Copy the full SHA ad291f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for c68d6f0 - Browse repository at this point
Copy the full SHA c68d6f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ca13aa - Browse repository at this point
Copy the full SHA 1ca13aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 891c6e4 - Browse repository at this point
Copy the full SHA 891c6e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for d35237e - Browse repository at this point
Copy the full SHA d35237eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ebf1e5 - Browse repository at this point
Copy the full SHA 1ebf1e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58d5460 - Browse repository at this point
Copy the full SHA 58d5460View commit details -
Configuration menu - View commit details
-
Copy full SHA for 652e1e0 - Browse repository at this point
Copy the full SHA 652e1e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ac03b7 - Browse repository at this point
Copy the full SHA 8ac03b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9cc156 - Browse repository at this point
Copy the full SHA b9cc156View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7d9bba - Browse repository at this point
Copy the full SHA e7d9bbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for a05c4f1 - Browse repository at this point
Copy the full SHA a05c4f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb4bb20 - Browse repository at this point
Copy the full SHA cb4bb20View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5bed16 - Browse repository at this point
Copy the full SHA c5bed16View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0d80d3 - Browse repository at this point
Copy the full SHA c0d80d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c22d360 - Browse repository at this point
Copy the full SHA c22d360View commit details -
Configuration menu - View commit details
-
Copy full SHA for 884ea20 - Browse repository at this point
Copy the full SHA 884ea20View commit details -
Generate class instead of object, instanciate main
- This allows for top-level main methods without name conflict with the companion object - Instead of extending main, instanciate a new main and call command on it - Will need to instanciate the @ class instead of @main (allowing easy overriding of methods) - Will need to check if not extending main is an issue
Configuration menu - View commit details
-
Copy full SHA for f18b3a4 - Browse repository at this point
Copy the full SHA f18b3a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a3748d0 - Browse repository at this point
Copy the full SHA a3748d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a60bd11 - Browse repository at this point
Copy the full SHA a60bd11View commit details -
Configuration menu - View commit details
-
Copy full SHA for 989bcfa - Browse repository at this point
Copy the full SHA 989bcfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 26b2d63 - Browse repository at this point
Copy the full SHA 26b2d63View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45f7ba2 - Browse repository at this point
Copy the full SHA 45f7ba2View commit details -
Add support for default values
main-annotation* tests now all pass again This is quite messy, it should most probably be cleaned or done in a cleaner way
Configuration menu - View commit details
-
Copy full SHA for 62b1670 - Browse repository at this point
Copy the full SHA 62b1670View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45490a9 - Browse repository at this point
Copy the full SHA 45490a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cf2f7f - Browse repository at this point
Copy the full SHA 7cf2f7fView commit details -
The "This should not be printed!" lines are, in fact, printed in IDEs
Configuration menu - View commit details
-
Copy full SHA for 0ab2c43 - Browse repository at this point
Copy the full SHA 0ab2c43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0657c64 - Browse repository at this point
Copy the full SHA 0657c64View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce7471a - Browse repository at this point
Copy the full SHA ce7471aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ed3a9f - Browse repository at this point
Copy the full SHA 8ed3a9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b68474 - Browse repository at this point
Copy the full SHA 8b68474View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7eb8c0c - Browse repository at this point
Copy the full SHA 7eb8c0cView commit details -
Factorize getter code, check duplicate named param
- Extract argGetter and argGetterDefault into a helper method - When using multiple times the same arg by name, display an error
Configuration menu - View commit details
-
Copy full SHA for 91f5ee4 - Browse repository at this point
Copy the full SHA 91f5ee4View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd5674e - Browse repository at this point
Copy the full SHA cd5674eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ccfe578 - Browse repository at this point
Copy the full SHA ccfe578View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b42578 - Browse repository at this point
Copy the full SHA 8b42578View commit details -
Configuration menu - View commit details
-
Copy full SHA for 91f6d55 - Browse repository at this point
Copy the full SHA 91f6d55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 87f9c09 - Browse repository at this point
Copy the full SHA 87f9c09View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78fa961 - Browse repository at this point
Copy the full SHA 78fa961View commit details -
Rework of Arguments, change usage format
- Remove "case" keywork for Argument subclasses to avoid unapply pattern matching (future compatibility) - Change output of usage function to be more expressive
Configuration menu - View commit details
-
Copy full SHA for a65b76f - Browse repository at this point
Copy the full SHA a65b76fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 52ef5dc - Browse repository at this point
Copy the full SHA 52ef5dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 75e06a1 - Browse repository at this point
Copy the full SHA 75e06a1View commit details -
Make defaultValue by-name param
Co-authored-by: Nicolas Stucki <nicolas.stucki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 395fd14 - Browse repository at this point
Copy the full SHA 395fd14View commit details -
Remove redundant val in ExitCode
Co-authored-by: Nicolas Stucki <nicolas.stucki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f300597 - Browse repository at this point
Copy the full SHA f300597View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45acb09 - Browse repository at this point
Copy the full SHA 45acb09View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6de547f - Browse repository at this point
Copy the full SHA 6de547fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 70ee28a - Browse repository at this point
Copy the full SHA 70ee28aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 50de840 - Browse repository at this point
Copy the full SHA 50de840View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bc549b - Browse repository at this point
Copy the full SHA 6bc549bView commit details -
Fix issue where map is not member of Array[String | Null] | Null
- This was caused by changes in issue scala#13729
Configuration menu - View commit details
-
Copy full SHA for 1b9c952 - Browse repository at this point
Copy the full SHA 1b9c952View commit details -
Configuration menu - View commit details
-
Copy full SHA for de93b4d - Browse repository at this point
Copy the full SHA de93b4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for bbcf4ea - Browse repository at this point
Copy the full SHA bbcf4eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for bdddb3f - Browse repository at this point
Copy the full SHA bdddb3fView commit details -
- Now that main is final, the code can be factorized
Configuration menu - View commit details
-
Copy full SHA for 88a76df - Browse repository at this point
Copy the full SHA 88a76dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for f2bafb4 - Browse repository at this point
Copy the full SHA f2bafb4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cd2a88 - Browse repository at this point
Copy the full SHA 3cd2a88View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4a6ff0 - Browse repository at this point
Copy the full SHA c4a6ff0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b685c4 - Browse repository at this point
Copy the full SHA 7b685c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6e9da9 - Browse repository at this point
Copy the full SHA a6e9da9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5065a09 - Browse repository at this point
Copy the full SHA 5065a09View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63f30f8 - Browse repository at this point
Copy the full SHA 63f30f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for de73f3c - Browse repository at this point
Copy the full SHA de73f3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cad3dc - Browse repository at this point
Copy the full SHA 2cad3dcView commit details -
Pass doc to command; main parameter for line length
- Instead of passing arg docs to the args, pass the whole docstring to the command function and parse it on run - Add parameter in main to control max line width when printing
Configuration menu - View commit details
-
Copy full SHA for d32868a - Browse repository at this point
Copy the full SHA d32868aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d4418e - Browse repository at this point
Copy the full SHA 4d4418eView commit details -
Configuration menu - View commit details
-
Copy full SHA for bded202 - Browse repository at this point
Copy the full SHA bded202View commit details -
Configuration menu - View commit details
-
Copy full SHA for aff99de - Browse repository at this point
Copy the full SHA aff99deView commit details -
Remove ExitCode and result printing in main
- After discussing with LAMP members, I was instructed to not print the result of a main method
Configuration menu - View commit details
-
Copy full SHA for 889dbd6 - Browse repository at this point
Copy the full SHA 889dbd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d0c149 - Browse repository at this point
Copy the full SHA 4d0c149View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1be2e7d - Browse repository at this point
Copy the full SHA 1be2e7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8161163 - Browse repository at this point
Copy the full SHA 8161163View commit details -
Factorize annotation instanciation code
- Tweak code for default values, add support for varargs - Add related tests
Configuration menu - View commit details
-
Copy full SHA for eafa508 - Browse repository at this point
Copy the full SHA eafa508View commit details -
Pass object to argGetter instead of multiple params
- Instead of adding to the list of elements when we add functionalities to the getter functions, we now pass an object containing the values. That way, adding an argument is a matter of expanding the class ParameterInfos and adding a few lines in MainProxies
Configuration menu - View commit details
-
Copy full SHA for 99d9c12 - Browse repository at this point
Copy the full SHA 99d9c12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 282bfc6 - Browse repository at this point
Copy the full SHA 282bfc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d1d1f9 - Browse repository at this point
Copy the full SHA 0d1d1f9View commit details -
Add main.Arg annotation for argument-related parameters
- Add annotation for main method arguments - Add support for alternative names and short names
Configuration menu - View commit details
-
Copy full SHA for c8584df - Browse repository at this point
Copy the full SHA c8584dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for d1ab483 - Browse repository at this point
Copy the full SHA d1ab483View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2b5287 - Browse repository at this point
Copy the full SHA f2b5287View commit details -
Configuration menu - View commit details
-
Copy full SHA for 635b79e - Browse repository at this point
Copy the full SHA 635b79eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 485d9f8 - Browse repository at this point
Copy the full SHA 485d9f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e71cb2 - Browse repository at this point
Copy the full SHA 1e71cb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4dc846 - Browse repository at this point
Copy the full SHA b4dc846View commit details -
Use default values' symbols instead of trees
- This avoids having to somehow retype the value
Configuration menu - View commit details
-
Copy full SHA for 760f49c - Browse repository at this point
Copy the full SHA 760f49cView commit details -
Change structure of ParameterInfos
- Based on suggestion by Nicolas Stucki, here: https://gist.github.com/nicolasstucki/84ebcd5c2cfc9aa14abba96ae1a0e996 - Add ability to pass multiple ParameterAnnotations
Configuration menu - View commit details
-
Copy full SHA for af851b3 - Browse repository at this point
Copy the full SHA af851b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 300adcf - Browse repository at this point
Copy the full SHA 300adcfView commit details -
Configuration menu - View commit details
-
Copy full SHA for e818f13 - Browse repository at this point
Copy the full SHA e818f13View commit details -
Split Arg into ShortName and Name
- Allow for multiple parameter annotations - Rework the code of main to reflect changes and simplify treatment - Change output of help and usage to accomodate for multiple names
Configuration menu - View commit details
-
Copy full SHA for 07426c4 - Browse repository at this point
Copy the full SHA 07426c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf0c98c - Browse repository at this point
Copy the full SHA cf0c98cView commit details -
Fix issue with explicit type for parameters
- Before this fix, trying to remove the [Int] from the option resulted in: cannot infer type; expected type <?> is not fully defined To avoid this, we simply wrap the pre-typed arguments in TypedSplices
Configuration menu - View commit details
-
Copy full SHA for 99f6ba3 - Browse repository at this point
Copy the full SHA 99f6ba3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2be6820 - Browse repository at this point
Copy the full SHA 2be6820View commit details -
Configuration menu - View commit details
-
Copy full SHA for c681a6f - Browse repository at this point
Copy the full SHA c681a6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b44edf - Browse repository at this point
Copy the full SHA 5b44edfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f16275 - Browse repository at this point
Copy the full SHA 6f16275View commit details -
Configuration menu - View commit details
-
Copy full SHA for 86c6bed - Browse repository at this point
Copy the full SHA 86c6bedView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc1fba6 - Browse repository at this point
Copy the full SHA fc1fba6View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1bc063 - Browse repository at this point
Copy the full SHA f1bc063View commit details -
Configuration menu - View commit details
-
Copy full SHA for 61744dd - Browse repository at this point
Copy the full SHA 61744ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 06514c4 - Browse repository at this point
Copy the full SHA 06514c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5599dd5 - Browse repository at this point
Copy the full SHA 5599dd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 823f320 - Browse repository at this point
Copy the full SHA 823f320View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8da6b8 - Browse repository at this point
Copy the full SHA a8da6b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 36988bb - Browse repository at this point
Copy the full SHA 36988bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ddbb6d0 - Browse repository at this point
Copy the full SHA ddbb6d0View commit details -
Pass ParameterInfos in command instead of getters
- Pass ParameterInfos for parameters in the command method instead of the getter functions. This way, we know about all of them beforehand, and parsing can be done more efficiently.
Configuration menu - View commit details
-
Copy full SHA for a57ff52 - Browse repository at this point
Copy the full SHA a57ff52View commit details -
Configuration menu - View commit details
-
Copy full SHA for c77f5d3 - Browse repository at this point
Copy the full SHA c77f5d3View commit details -
Rework of main.Name and main.ShortName
- Merge Name and ShortName into Alias - Make Alias take a variable number of arguments - Distinguish between long and short names by string length
Configuration menu - View commit details
-
Copy full SHA for 5558948 - Browse repository at this point
Copy the full SHA 5558948View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e99de0 - Browse repository at this point
Copy the full SHA 4e99de0View commit details -
- --help and -h display usage and help - if an argument or an alias is the same as either help or h, disable help printing for that argument
Configuration menu - View commit details
-
Copy full SHA for b359465 - Browse repository at this point
Copy the full SHA b359465View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ce8911 - Browse repository at this point
Copy the full SHA 4ce8911View commit details