make_release: do not annotate boolean switches in public API (#635)

related to
- https://github.com/nushell/nushell/pull/10456
- https://github.com/nushell/nushell.github.io/pull/1071

## description
after the changes on boolean switches from
https://github.com/nushell/nushell/pull/10456, we need to not annotate
then with `: bool` when part of a public API.

this PR is required for
https://github.com/nushell/nushell.github.io/pull/1071 to move forward.
This commit is contained in:
Antoine Stevan 2023-10-14 16:19:04 +02:00 committed by GitHub
parent 907612cc70
commit bc89655422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ use std log
# bump the minor or patch version of the Nushell project
def main [
--patch: bool # update the minor version instead of the minor
--patch # update the minor version instead of the minor
]: nothing -> nothing {
let version = open Cargo.toml
| get package.version

View File

@ -2,7 +2,7 @@ use std log
def publish [
crate: path # the path to the crate to publish.
--no-verify: bool # dont verify the contents by building them. Can be useful for crates with a `build.rs`.
--no-verify # dont verify the contents by building them. Can be useful for crates with a `build.rs`.
] {
cd $crate

View File

@ -13,8 +13,8 @@ def main [
repo: string # the name of the repo, e.g. `nushell/nushell`
date?: datetime # the date of the last release (default to 4 weeks ago, excluded)
--label: string # the label to filter the PRs by, e.g. `good-first-issue`
--pretty: bool # pretty-print for the MarkDown release not
--no-author: bool # do not group the contributions by author
--pretty # pretty-print for the MarkDown release not
--no-author # do not group the contributions by author
] {
let date = $date | default ((date now) - 4wk) | format date "%Y-%m-%d"