dxw / whippet

Whippet is a framework for building WordPress sites that eases deployment, plugin management and build steps.
MIT License
14 stars 3 forks source link

Add a `version` command #159

Open RobjS opened 3 years ago

RobjS commented 3 years ago

So a user can run e.g. whippet version or whippet -v to get info on what version they're running.

snim2 commented 2 years ago

How were you anticipating the version information would be stored?

RobjS commented 2 years ago

I hadn't really thought that far ahead! I guess maybe either in https://github.com/dxw/whippet/blob/main/src/Whippet.php, or in a file in a config/ folder? Probably as a protected property, or something along those lines.

snim2 commented 3 months ago

Note the enhancement/version-command-to-return-whippet-version branch contains some work for this feature