From 3cccdedcf3c5ceeb8f7a53b85d118086cd7dd4bf Mon Sep 17 00:00:00 2001 From: Gildas Cherruel Date: Sat, 30 Dec 2023 16:34:44 +0900 Subject: [PATCH] Installation: Added snap --- README.md | 10 +++++++++- snap/snapcraft.yaml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 snap/snapcraft.yaml diff --git a/README.md b/README.md index 3ac8edf..153bd4b 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,19 @@ [bb](https://bitbucket.org/gildas_cherruel/bb) is the missing command line interface for Bitbucket. +The [Bitbucket Command Line Interface](https://bitbucket.org/gildas_cherruel/b) brings the power of the Bitbucket platform to your command line. Creating and merging Pull Requests, cloning repositories, and more are now just a few keystrokes away. + ## Installation You can download the latest version of `bb` from the [downloads](https://bitbucket.org/gildas_cherruel/bb/downloads/) page. -Once you get the `bb` executable, you can install it anywhere in your `$PATH`: +Once you get the `bb` executable, you can install it anywhere in your `$PATH`. + +You can also install `bb` with snap: + +```bash +snap install bitbucket-cli +``` ## Usage diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..810ea99 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,33 @@ +name: bitbucket-cli +summary: Bitbucket CLI +description: | + The Bitbucket Command Line Interface brings the power of the Bitbucket + platform to your command line. Creating and merging Pull Requests, cloning + repositories, and more are now just a few keystrokes away. +version: git +base: core22 +grade: stable +confinement: strict + +plugs: + dot-config-bb: + interface: personal-files + write: + - $HOME/.config/bitbucket/config-cli.yml + - $HOME/.bitbucket-cli + +apps: + bb: + command: bin/bb + plugs: + - home + - dot-config-bb + - network + +parts: + bb: + plugin: go + source-type: git + source: https://bitbucket.org/gildas_cherruel/bb + build-snaps: + - go