vala-lang / valdo

Create new Vala projects from templates
GNU Lesser General Public License v2.1
49 stars 13 forks source link

Draft: Add CLI template #17

Closed colinkiama closed 2 years ago

colinkiama commented 2 years ago

This adds a template for CLI Tools.

Provides a basic setup that utilises OptionContext, provides a command and a template for defining more commands.

Prince781 commented 2 years ago

Interesting idea, but I think I want the CLI template to be improved or at least rationalized with how other open-source projects do things. Is this a pattern you see in other CLI tools (for example, flatpak)?

colinkiama commented 2 years ago

Sorry, I made this a while ago, there’s so much I’d change now 😅.

The pattern only partially matches what you would see in existing open-source CLIs.

One of the main changes would be giving each command their own OptionContext.

Prince781 commented 2 years ago

If you want to close or revise this PR, let me know.

colinkiama commented 2 years ago

I would like to revise this PR

colinkiama commented 2 years ago

I’d like to close this actually