From b820093afdacf1477c39586ba0e4c0621e1f05b1 Mon Sep 17 00:00:00 2001 From: Julien Maupetit Date: Mon, 16 May 2022 12:26:54 +0200 Subject: Bump release to 2.1.0 Added: - The restart command now accepts the `--gap/--no-gap` options. Fixed: - Watson is now compatible with Click 8+ --- CHANGELOG.md | 9 ++++++++- docs/about/release-notes.md | 11 +++++++++++ watson.zsh-completion | 9 ++++++--- watson/version.py | 2 +- 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06cec57..0d6e3a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.1.0] - 2022-05-16 + ### Added - The restart command now accepts the `--gap/--no-gap` options. +### Fixed + +- Watson is now compatible with Click 8+ + ## [2.0.1] - 2021-05-10 ### Fixed @@ -283,7 +289,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 First stable public release 🎉 -[unreleased]: https://github.com/tailordev/watson/compare/2.0.1...HEAD +[unreleased]: https://github.com/tailordev/watson/compare/2.1.0...HEAD +[2.1.0]: https://github.com/tailordev/watson/compare/2.0.1...2.1.0 [2.0.1]: https://github.com/tailordev/watson/compare/2.0.0...2.0.1 [2.0.0]: https://github.com/tailordev/watson/compare/1.10.0...2.0.0 [1.10.0]: https://github.com/tailordev/watson/compare/1.9.0...1.10.0 diff --git a/docs/about/release-notes.md b/docs/about/release-notes.md index 95b9c77..e6daedd 100644 --- a/docs/about/release-notes.md +++ b/docs/about/release-notes.md @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. 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). +## [2.1.0] - 2022-05-16 + +### Added + +- The restart command now accepts the `--gap/--no-gap` options. + +### Fixed + +- Watson is now compatible with Click 8+ + ## [2.0.1] - 2021-05-10 ### Fixed @@ -276,6 +286,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 First stable public release 🎉 +[2.1.0]: https://github.com/tailordev/watson/compare/2.0.1...2.1.0 [2.0.1]: https://github.com/tailordev/watson/compare/2.0.0...2.0.1 [2.0.0]: https://github.com/tailordev/watson/compare/1.10.0...2.0.0 [1.10.0]: https://github.com/tailordev/watson/compare/1.9.0...1.10.0 diff --git a/watson.zsh-completion b/watson.zsh-completion index 1256e99..3594054 100644 --- a/watson.zsh-completion +++ b/watson.zsh-completion @@ -1,8 +1,11 @@ #compdef watson + _watson_completion() { local -a completions local -a completions_with_descriptions local -a response + (( ! $+commands[watson] )) && return 1 + response=("${(@f)$( env COMP_WORDS="${words[*]}" \ COMP_CWORD=$((CURRENT-1)) \ _WATSON_COMPLETE="complete_zsh" \ @@ -17,13 +20,13 @@ _watson_completion() { done if [ -n "$completions_with_descriptions" ]; then - _describe -V unsorted completions_with_descriptions -U -Q + _describe -V unsorted completions_with_descriptions -U fi if [ -n "$completions" ]; then - compadd -U -V unsorted -Q -a completions + compadd -U -V unsorted -a completions fi compstate[insert]="automenu" } -_watson_completion +compdef _watson_completion watson; diff --git a/watson/version.py b/watson/version.py index 78155c2..4c22740 100644 --- a/watson/version.py +++ b/watson/version.py @@ -1 +1 @@ -version = "2.0.1" +version = "2.1.0" -- cgit v1.2.3