Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spec: add spec for notation version command #376

Merged
merged 14 commits into from
Oct 18, 2022
41 changes: 41 additions & 0 deletions specs/commandline/version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# notation version

## Description

Use `notation version` to print notation version information.

Upon successful execution, the following information is printed.

```text
Notation: Notary v2, A tool to sign, store, and verify artifacts.

Version: <MAJOR.MINOR.PATCH>
```

## Outline

```text
Print the notation version information

Usage:
notation version [flags]

Flags:
-h, --help Help for version
```

## Usage

### Print notation version information

```shell
notation version
```

An example output:

```text
Notation: Notary v2, A tool to sign, store, and verify artifacts.

Version: 1.0.0
yizha1 marked this conversation as resolved.
Show resolved Hide resolved
```