Skip to content

Commit

Permalink
Fix command examples
Browse files Browse the repository at this point in the history
  • Loading branch information
talal committed Nov 24, 2022
1 parent f4638eb commit 2b76708
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ The sections should follow the order `Added`, `Changed`, `Fixed`, `Removed`, and
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/sapcc/limesctl/compare/v3.1.1...HEAD)
## [Unreleased](https://github.com/sapcc/limesctl/compare/v3.1.2...HEAD)

## 3.1.2 - 2022-11-24

## Fixed

- Examples for `domain set` and `project set` commands.

## 3.1.1 - 2022-11-20

Expand Down
7 changes: 3 additions & 4 deletions internal/cmd/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,10 @@ For relative quota adjustment, use one of the following operators: [+=, -=, *=,
This command requires a cloud-admin token.`,
Example: makeExamplesString([]string{
`limesctl domain set --quotas="compute/cores=200,compute/ram=50GiB"`,
`limesctl domain set -q compute/cores=200 -q compute/ram=50GiB (you can give the flag multiple times)`,
`limesctl domain set -q compute/cores=200 -q compute/ram=50GiB (you can give the flag multiple times)`,
`limesctl domain set -q compute/cores*=2 -q compute/ram+=10GiB`,
`limesctl domain set -q compute/cores=200 -q compute/ram=50GiB (you can give the flag multiple times and use flag shorthand '-q')`,
`limesctl domain set -q compute/cores*=2 -q compute/ram+=10GiB (relative quota update)`,
`limesctl domain set -q object-store/capacity=1TiB (you can also use a unit other than the service's default, e.g. object-store uses 'B' by default but we use 'TiB' here)`,
`limesctl domain set -q object-store/capacity-=0.25TiB (fractional values are also possible)`,
`limesctl domain set -q object-store/capacity-=0.25TiB (fractional values are also supported)`,
}),
Args: cobra.MaximumNArgs(1),
PreRunE: authWithLimesResources,
Expand Down
7 changes: 3 additions & 4 deletions internal/cmd/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,10 @@ For relative quota adjustment, use one of the following operators: [+=, -=, *=,
This command requires a domain-admin token.`,
Example: makeExamplesString([]string{
`limesctl project set --quotas="compute/cores=200,compute/ram=50GiB"`,
`limesctl project set -q compute/cores=200 -q compute/ram=50GiB (you can give the flag multiple times)`,
`limesctl project set -q compute/cores=200 -q compute/ram=50GiB (you can give the flag multiple times)`,
`limesctl project set -q compute/cores*=2 -q compute/ram+=10GiB`,
`limesctl project set -q compute/cores=200 -q compute/ram=50GiB (you can give the flag multiple times and use flag shorthand '-q')`,
`limesctl project set -q compute/cores*=2 -q compute/ram+=10GiB (relative quota update)`,
`limesctl project set -q object-store/capacity=1TiB (you can also use a unit other than the service's default, e.g. object-store uses 'B' by default but we use 'TiB' here)`,
`limesctl project set -q object-store/capacity-=0.25TiB (fractional values are also possible)`,
`limesctl project set -q object-store/capacity-=0.25TiB (fractional values are also supported)`,
}),
Args: cobra.MaximumNArgs(1),
PreRunE: authWithLimesResources,
Expand Down

0 comments on commit 2b76708

Please sign in to comment.