Tyrrrz / CliFx

Class-first framework for building command-line interfaces
MIT License
1.48k stars 60 forks source link

Add positional arguments #32

Closed thorhj closed 4 years ago

thorhj commented 4 years ago

This is for issue #26 with the following shortcomings:

Tests are missing Will implement if the solution is approved.

Closes #26

Tyrrrz commented 4 years ago

Thanks! I will take a look.

thorhj commented 4 years ago

@Tyrrrz I have added a lot of commits to fix the issues you mentioned. There are still missing tests, but I don't think I can get to it the following week. You are welcome to implement tests if you wish, otherwise it will take some time :)

Tyrrrz commented 4 years ago

Sounds good and don't worry. I'm currently overloaded with issues myself (both real life and other projects) so I can't devote my full focus to CliFx yet :)

thorhj commented 4 years ago

Just so I'll remember, here is the stuff I need to write tests on:

Command resolution

Help text

Argument validation

Input validation (command initialization)

NOTE: Consider moving validation to separate class to allow easy unit testing without creating numerous test commands.

Tyrrrz commented 4 years ago

Added some conflicts for you to make it more fun.

thorhj commented 4 years ago

@Tyrrrz I am picking this up again. Hope to have it done in a few days.

thorhj commented 4 years ago

@Tyrrrz Happy new years! I think all the work in this PR is done now -- what better way to start the new year than to code review? ;)

Tyrrrz commented 4 years ago

@thorhj Sounds like the best New Years gift to me :) I'll look at it soon. Happy holidays to you too!

Tyrrrz commented 4 years ago

@thorhj how is it going? :) Any chance you will have time to fix the few issues so I can merge it next week?

thorhj commented 4 years ago

@Tyrrrz It should be fixed now!

Tyrrrz commented 4 years ago

Thanks! 🎉