From 2c026ae3d18a71b3732ff03d684a71bf0660b884 Mon Sep 17 00:00:00 2001 From: Charlie Ozinga Date: Wed, 11 Nov 2020 13:02:45 -0700 Subject: [PATCH] fix: add "info -A" and global "-c" flags --- README.md | 8 ++++---- docs/reference.md | 16 ++++++++++++--- docs/use_cases.md | 2 +- docs/vcs_levels.md | 16 ++++++++++++++- src/cli.rs | 46 ++++++++++++++++++++++++++++++------------- src/commands.rs | 49 +++++++++++++++++++++++++++------------------- src/git.rs | 44 ++++++++++++++++++++++++----------------- src/init.rs | 8 ++++---- src/mono.rs | 6 +++--- src/state.rs | 9 +++++---- src/vcs.rs | 18 +++++++++++++++++ 11 files changed, 150 insertions(+), 72 deletions(-) diff --git a/README.md b/README.md index 70021f5..f4a12db 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ can be a headache to resolve. And it can be inefficient to halt all contributions while a release is being built. --> -Software go through a _release process_, where the software is +Software goes through a _release process_, where the software is described, assigned a version number, and deployed to sites where it can be executed or distributed. This process occurs first when the application is created, and again whenever maintenance or improvements @@ -129,9 +129,9 @@ Subdirectories](./docs/subs.md) page for a description. ### VCS Levels VCS Levels allow you to control the way Versio interacts with a Git -repository: you can have interact only locally, with a remote, or not at -all. See the description in its [document](./docs/vcs_levels.md) for -more information. +repository: you can interact only locally, with a remote, or not at all. +See the description in its [document](./docs/vcs_levels.md) for more +information. ### Version Chains diff --git a/docs/reference.md b/docs/reference.md index 5432ed3..7e9cfc3 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -95,6 +95,10 @@ $ versio [subcommand] - `vcs-level` (`-l`), `vcs-level-min` (`-m`), `vcs-level-max` (`-x`): see the [VCS Levels](./vcs_levels.md) page for a description of these global options. +- `no-current` (`-c`): when the calculated vcs level is "local", + commands that make no changes (`check`, `get`, `show`, `diff`, + `files`, `changes`, `plan`, `info`) will not verify that the repo is + current. ### Subcommands [Subcommands]: #subcommands @@ -139,8 +143,8 @@ along with their options and flags. You can always use `versio help` or - `files`: See all files that have changed since the previous version. - `plan`: View the update plan. - `info`: Outputs a JSON document with information about projects: - - `--id` (`-i `): include an ID'd project in the document (you can - provide this option more than once). + - `--id` (`-i `): include a single project with the given ID (you + can provide this option more than once). - `--name` (`-n `): include a named project in the document (you can provide this option more than once). - `--label` (`-l