Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Add a -version flag - #96

Merged
skx merged 1 commit into
masterfrom
92-version
Feb 11, 2022
Merged

skx merged 1 commit into
masterfrom
92-version

Conversation

@skx

@skx skx commented Feb 11, 2022

Copy link
Copy Markdown
Owner

This shows the version, and exits cleanly, when -version is specified.

There are two implementations one for go 1.18+ and one for previous
releases - the newer version shows details about our repository:

  $ ./marionette -version
  unreleased
  vcs: git
  vcs.revision: 2bb0b080a0308ddcb4ae7d9fb00441bcf05df7e0
  vcs.time: 2022-02-10T04:20:12Z
  vcs.modified: true

This closes #92.

This shows the version, and exits cleanly, when -version is specified.

There are two implementations one for go 1.18+ and one for previous
releases - the newer version shows details about our repository:

      $ ./marionette -version
      unreleased
      vcs: git
      vcs.revision: 2bb0b08
      vcs.time: 2022-02-10T04:20:12Z
      vcs.modified: true

This closes #92.
@skx skx self-assigned this Feb 11, 2022
@skx
skx merged commit f28e7de into master Feb 11, 2022
@skx
skx deleted the 92-version branch February 11, 2022 15:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --version flag

1 participant

⌂ 换网址