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/cmd/repository/list.go b/cmd/repository/list.go index a448be4..50b2c10 100644 --- a/cmd/repository/list.go +++ b/cmd/repository/list.go @@ -29,6 +29,7 @@ func init() { listCmd.Flags().Var(&listOptions.Role, "role", "Role of the user in the repository") listCmd.Flags().Var(&listOptions.Workspace, "workspace", "Workspace to list repositories from") _ = listCmd.RegisterFlagCompletionFunc("workspace", listOptions.Workspace.CompletionFunc()) + _ = listCmd.RegisterFlagCompletionFunc("role", listOptions.Role.CompletionFunc()) } func listProcess(cmd *cobra.Command, args []string) (err error) { diff --git a/go.mod b/go.mod index 3776481..6195e8a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module bitbucket.org/gildas_cherruel/bb -go 1.21.3 +go 1.21 require ( github.com/gildas/go-core v0.5.6 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 diff --git a/version.go b/version.go index 4417cef..61306b8 100644 --- a/version.go +++ b/version.go @@ -12,7 +12,7 @@ var branch string var stamp string // VERSION is the version of this application -var VERSION = "0.7.0" +var VERSION = "0.8.0" // APP is the name of the application const APP = "bb"