Hello @ethan-kusters I tried implementing "version" command and hit some opstacles and drew possible conclusion why such command was not built in the first place.
Firstly, readme.md file in swift-docc repository states following:
> Swift-DocC's CLI tool ( docc) will be integrated into the Swift toolchain and follows the Swift compiler's versioning scheme.
So what ever the current Swift version is, you can assume that it is the same for docc CLI.
Secondly, there is no obvious place to write current docc version since SPM promotes using git tags for that. In case of this CLI, no git tags are created by project maintainers.
Additional Detail from JIRA
md5: 765556f0235e43786ce452dab96df62e
Issue Description:
docc should output it's current version to the command line.
This could be similar to the behavior of the `swift --version` command and output the current version of `docc` along with a commit hash.
The text was updated successfully, but these errors were encountered: