From a79a62c5d074319d7e7c6edc0f83384f99b2d2f9 Mon Sep 17 00:00:00 2001 From: orangekame3 Date: Sun, 8 Oct 2023 12:08:42 +0900 Subject: [PATCH] update --- .goreleaser.yml | 4 ++-- CHANGELOG.md | 22 +++++++++++----------- README.md | 6 +++--- cmd/root.go | 4 ++-- go.mod | 2 +- main.go | 2 +- win-installer.sh | 4 ++-- winget-installer.ps1 | 6 +++--- 8 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 164b243..1bfe51e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -46,12 +46,12 @@ brews: token: "{{ .Env.TAP_GITHUB_TOKEN }}" winget: - - name: cobra-template + - name: gitfetch publisher: orangekame3 license: "mit" copyright: Takafumi Miyanaga short_description: A template for creating package using cobra. - path: manifests/orangekame3/cobra-template + path: manifests/orangekame3/gitfetch repository: owner: orangekame3 name: winget-pkgs diff --git a/CHANGELOG.md b/CHANGELOG.md index fd2421d..aea7430 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,23 +1,23 @@ # Changelog -## [v0.0.11](https://github.com/orangekame3/cobra-template/compare/v0.0.10...v0.0.11) - 2023-10-07 +## [v0.0.11](https://github.com/orangekame3/gitfetch/compare/v0.0.10...v0.0.11) - 2023-10-07 -## [v0.0.10](https://github.com/orangekame3/cobra-template/compare/v0.0.9...v0.0.10) - 2023-10-07 +## [v0.0.10](https://github.com/orangekame3/gitfetch/compare/v0.0.9...v0.0.10) - 2023-10-07 -## [v0.0.9](https://github.com/orangekame3/cobra-template/compare/v0.0.8...v0.0.9) - 2023-10-07 +## [v0.0.9](https://github.com/orangekame3/gitfetch/compare/v0.0.8...v0.0.9) - 2023-10-07 -## [v0.0.8](https://github.com/orangekame3/cobra-template/compare/v0.0.7...v0.0.8) - 2023-10-07 +## [v0.0.8](https://github.com/orangekame3/gitfetch/compare/v0.0.7...v0.0.8) - 2023-10-07 -## [v0.0.7](https://github.com/orangekame3/cobra-template/compare/v0.0.6...v0.0.7) - 2023-10-07 +## [v0.0.7](https://github.com/orangekame3/gitfetch/compare/v0.0.6...v0.0.7) - 2023-10-07 -## [v0.0.6](https://github.com/orangekame3/cobra-template/compare/v0.0.5...v0.0.6) - 2023-10-07 +## [v0.0.6](https://github.com/orangekame3/gitfetch/compare/v0.0.5...v0.0.6) - 2023-10-07 -## [v0.0.5](https://github.com/orangekame3/cobra-template/compare/v0.0.4...v0.0.5) - 2023-10-07 +## [v0.0.5](https://github.com/orangekame3/gitfetch/compare/v0.0.4...v0.0.5) - 2023-10-07 -## [v0.0.4](https://github.com/orangekame3/cobra-template/compare/v0.0.3...v0.0.4) - 2023-10-07 +## [v0.0.4](https://github.com/orangekame3/gitfetch/compare/v0.0.3...v0.0.4) - 2023-10-07 -## [v0.0.3](https://github.com/orangekame3/cobra-template/compare/v0.0.2...v0.0.3) - 2023-10-07 +## [v0.0.3](https://github.com/orangekame3/gitfetch/compare/v0.0.2...v0.0.3) - 2023-10-07 -## [v0.0.2](https://github.com/orangekame3/cobra-template/compare/v0.0.1...v0.0.2) - 2023-10-07 +## [v0.0.2](https://github.com/orangekame3/gitfetch/compare/v0.0.1...v0.0.2) - 2023-10-07 -## [v0.0.1](https://github.com/orangekame3/cobra-template/commits/v0.0.1) - 2023-10-04 +## [v0.0.1](https://github.com/orangekame3/gitfetch/commits/v0.0.1) - 2023-10-04 diff --git a/README.md b/README.md index 1f67494..806f047 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ -# cobra-template +# gitfetch ## Install ### Go ```shell -go install github.com/orangekame3/cobra-template@latest +go install github.com/orangekame3/gitfetch@latest ``` ### Homebrew ```shell -brew install orangekame3/tap/cobra-template +brew install orangekame3/tap/gitfetch ``` diff --git a/cmd/root.go b/cmd/root.go index c11d27b..bf485a2 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -31,7 +31,7 @@ import ( // rootCmd represents the base command when called without any subcommands var rootCmd = &cobra.Command{ - Use: "cobra-template", + Use: "gitfetch", Short: "A brief description of your application", Long: `A longer description that spans multiple lines and likely contains examples and usage of using your application. For example: @@ -60,7 +60,7 @@ func init() { // Cobra supports persistent flags, which, if defined here, // will be global for your application. - // rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.cobra-template.yaml)") + // rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.gitfetch.yaml)") // Cobra also supports local flags, which will only run // when this action is called directly. diff --git a/go.mod b/go.mod index 43dde28..b51791f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/orangekame3/cobra-template +module github.com/orangekame3/gitfetch go 1.21.0 diff --git a/main.go b/main.go index 12ae08c..f984a53 100644 --- a/main.go +++ b/main.go @@ -24,7 +24,7 @@ package main import ( "time" - "github.com/orangekame3/cobra-template/cmd" + "github.com/orangekame3/gitfetch/cmd" ) func main() { diff --git a/win-installer.sh b/win-installer.sh index b0dbe73..ba344b5 100644 --- a/win-installer.sh +++ b/win-installer.sh @@ -1,7 +1,7 @@ #!/bin/bash -BASE_URL="https://raw.githubusercontent.com/orangekame3/winget-pkgs/main/manifests/g/orangekame3/cobra-template" -FILES=("orangekame3.cobra-template.yaml" "orangekame3.cobra-template.installer.yaml" "orangekame3.cobra-template.locale.en-US.yaml") +BASE_URL="https://raw.githubusercontent.com/orangekame3/winget-pkgs/main/manifests/g/orangekame3/gitfetch" +FILES=("orangekame3.gitfetch.yaml" "orangekame3.gitfetch.installer.yaml" "orangekame3.gitfetch.locale.en-US.yaml") mkdir -p ./tmp diff --git a/winget-installer.ps1 b/winget-installer.ps1 index 497c998..57c3258 100644 --- a/winget-installer.ps1 +++ b/winget-installer.ps1 @@ -1,5 +1,5 @@ -$BASE_URL = "https://raw.githubusercontent.com/orangekame3/winget-pkgs/main/manifests/g/orangekame3/cobra-template" -$FILES = @("orangekame3.cobra-template.yaml", "orangekame3.cobra-template.installer.yaml", "orangekame3.cobra-template.locale.en-US.yaml") +$BASE_URL = "https://raw.githubusercontent.com/orangekame3/winget-pkgs/main/manifests/g/orangekame3/gitfetch" +$FILES = @("orangekame3.gitfetch.yaml", "orangekame3.gitfetch.installer.yaml", "orangekame3.gitfetch.locale.en-US.yaml") if (-not (Test-Path ./tmp)) { New-Item -ItemType Directory -Path ./tmp @@ -9,7 +9,7 @@ foreach ($file in $FILES) { Invoke-WebRequest -Uri "$BASE_URL/$file" -OutFile "./tmp/$file" } -winget install -m ./tmp/orangekame3.cobra-template.yaml +winget install -m ./tmp/orangekame3.gitfetch.yaml foreach ($file in $FILES) {