diff --git a/.gitignore b/.gitignore index f2c3456..dc5c21b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,6 @@ node_modules/ __debug_*.exe debug.test*.exe clac -.env* \ No newline at end of file +.env* +dist/ +t*.md \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..6cd5223 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,75 @@ +before: + hooks: + - go mod tidy +builds: + - env: + - CGO_ENABLED=0 + goos: + - windows + + ldflags: + - -s -w -X github.com/cpendery/clac/cmd.version={{.Version}} + +archives: + - format: tar.gz + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} + format_overrides: + - goos: windows + format: zip +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ incpatch .Version }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' + - '^ci:' + +winget: + - name: clac + publisher: cpendery + short_description: IDE style command line auto complete + license: "apache 2.0" + publisher_url: https://github.com/cpendery + publisher_support_url: "https://github.com/cpendery/clac/issues/new" + package_identifier: cpendery.clac + goamd64: v1 + commit_author: + name: cpendery + email: cpendery@vt.edu + commit_msg_template: "{{ .PackageIdentifier }}: {{ .Tag }}" + path: manifests/g/goreleaser/1.19 + homepage: "https://github.com/cpendery/clac" + skip_upload: false + release_notes: "{{.Changelog}}" + tags: + - golang + - cli + repository: + owner: cpendery + name: clac + branch: main +chocolateys: + - name: clac + owners: cpendery + title: Clac + authors: cpendery + project_url: https://github.com/cpendery/clac + require_license_acceptance: false + project_source_url: https://github.com/cpendery/clac + bug_tracker_url: https://github.com/cpendery/clac/issues + summary: IDE style command line auto complete + description: IDE style command line auto complete + api_key: '{{ .Env.CHOCOLATEY_API_KEY }}' + source_repo: "https://push.chocolatey.org/" + skip_publish: false + goamd64: v1 diff --git a/cmd/root.go b/cmd/root.go index 9238524..9ec8254 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -13,7 +13,7 @@ import ( var ( rootCmd = &cobra.Command{ - Use: `clac `, + Use: `clac [command]`, Short: "command line autocomplete", Long: `clac - command line autocomplete