Skip to content

Commit f258e96

Browse files
committed
fix: bare command should show help
1 parent 1b0ab7f commit f258e96

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
5555
run: npm version ${{ steps.version.outputs.VERSION }} --no-git-tag-version
5656

5757
- name: Publish to npm
58-
run: npm publish
58+
run: NODE_AUTH_TOKEN="" npm publish

.goreleaser.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ homebrew_casks:
118118
repository:
119119
owner: BetterDiscord
120120
name: homebrew-tap
121-
branch: bdcli-{{ .Tag }}-{{ .Now.Format "20060102150405"}}
121+
# Use bdcli-{{ .Tag }}-{{ .Now.Format "20060102150405"}} if we switch to using pull requests instead of pushing directly to main.
122+
branch: main
122123
token: "{{ .Env.GH_PAT }}"
123124

124125

cmd/root.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ var rootCmd = &cobra.Command{
4949
Use: "bdcli",
5050
Short: "CLI for managing BetterDiscord",
5151
Long: `A cross-platform CLI for installing, updating, and managing BetterDiscord.`,
52-
Run: func(cmd *cobra.Command, args []string) {
53-
// Do Stuff Here
54-
fmt.Println("You should probably use a subcommand")
55-
},
52+
RunE: func(cmd *cobra.Command, args []string) error { return cmd.Help() },
5653
}
5754

5855
func Execute() {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "index.js",
66
"keywords": ["discord", "betterdiscord", "cli", "tool", "installer"],
77
"publishConfig": {
8-
"access": "public"
8+
"access": "public",
9+
"provenance": true
910
},
1011
"scripts": {
1112
"postinstall": "go-npm install",

0 commit comments

Comments
 (0)