template / commit
Renamed repo, rename everything. Added some comments into load config error.
.goreleaser.yaml | 12 ++++++------ HomebrewFormula/template.rb | 12 ++++++------ Makefile | 6 +++--- README.md | 6 +++--- go.mod | 2 +- main.go | 2 +- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a8415c0..8b8606a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -31,7 +31,7 @@ changelog: - '^docs:' - '^test:' # from https://goreleaser.com/customization/homebrew/ -# for https://gitlab.com/fuzzy-rp/template +# for https://gitlab.com/PavelSafronov/template brews: - # Name template of the recipe @@ -41,7 +41,7 @@ brews: # GitHub/GitLab repository to push the formula to tap: # Repository owner template. (templateable) - owner: fuzzy-rp + owner: PavelSafronov # Repository name. (templateable) name: template @@ -55,8 +55,8 @@ brews: # gitlab or gitea) # # Default depends on the client. - # https://gitlab.com/fuzzy-rp/template/-/releases/v0.1.17/downloads/template_0.1.17_Linux_i386.tar.gz - url_template: "https://gitlab.com/fuzzy-rp/template/-/releases/{{ .Tag }}/downloads/{{ .ArtifactName }}" + # https://gitlab.com/PavelSafronov/template/-/releases/v0.1.17/downloads/template_0.1.17_Linux_i386.tar.gz + url_template: "https://gitlab.com/PavelSafronov/template/-/releases/{{ .Tag }}/downloads/{{ .ArtifactName }}" # Git author used to commit to the repository. # Defaults are shown. @@ -73,11 +73,11 @@ brews: # Caveats for the user of your binary. # Default is empty. - caveats: "How to use this binary: https://gitlab.com/fuzzy-rp/template/-/blob/main/README.md" + caveats: "How to use this binary: https://gitlab.com/PavelSafronov/template/-/blob/main/README.md" # Your app's homepage. # Default is empty. - homepage: "https://gitlab.com/fuzzy-rp/template/" + homepage: "https://gitlab.com/PavelSafronov/template" # Template of your app's description. # Default is empty. diff --git a/HomebrewFormula/template.rb b/HomebrewFormula/template.rb index a6ffd19..5d26643 100644 --- a/HomebrewFormula/template.rb +++ b/HomebrewFormula/template.rb @@ -4,13 +4,13 @@ # This file was generated by GoReleaser. DO NOT EDIT. class Template < Formula desc "This CLI creates files and folders with generated templated names and content." - homepage "https://gitlab.com/fuzzy-rp/template/" + homepage "https://gitlab.com/PavelSafronov/template/" version "0.1.23" license "MIT" on_macos do if Hardware::CPU.intel? - url "https://gitlab.com/fuzzy-rp/template/-/releases/v0.1.23/downloads/template_0.1.23_Darwin_x86_64.tar.gz" + url "https://gitlab.com/PavelSafronov/template/-/releases/v0.1.23/downloads/template_0.1.23_Darwin_x86_64.tar.gz" sha256 "3cca330715632cfe60ecb21e1c8f9134036ae28701d9392a13b0b6fc1506b232" def install @@ -18,7 +18,7 @@ class Template < Formula end end if Hardware::CPU.arm? - url "https://gitlab.com/fuzzy-rp/template/-/releases/v0.1.23/downloads/template_0.1.23_Darwin_arm64.tar.gz" + url "https://gitlab.com/PavelSafronov/template/-/releases/v0.1.23/downloads/template_0.1.23_Darwin_arm64.tar.gz" sha256 "1c4cbb39744d366c30a7bc7caa0780f461158a39f02e39d1474b350e3bf8cfd5" def install @@ -29,7 +29,7 @@ class Template < Formula on_linux do if Hardware::CPU.intel? - url "https://gitlab.com/fuzzy-rp/template/-/releases/v0.1.23/downloads/template_0.1.23_Linux_x86_64.tar.gz" + url "https://gitlab.com/PavelSafronov/template/-/releases/v0.1.23/downloads/template_0.1.23_Linux_x86_64.tar.gz" sha256 "7e8f83090125045cfa0bddaa6d476d31adc9b5c2303ec956f7e7153d9665d742" def install @@ -37,7 +37,7 @@ class Template < Formula end end if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://gitlab.com/fuzzy-rp/template/-/releases/v0.1.23/downloads/template_0.1.23_Linux_arm64.tar.gz" + url "https://gitlab.com/PavelSafronov/template/-/releases/v0.1.23/downloads/template_0.1.23_Linux_arm64.tar.gz" sha256 "34ff5e08c23d1b88e5b6e2f53aeda20c56b67b98898c6458e4a903e0c5161d90" def install @@ -52,7 +52,7 @@ class Template < Formula def caveats <<~EOS - How to use this binary: https://gitlab.com/fuzzy-rp/template/-/blob/main/README.md + How to use this binary: https://gitlab.com/PavelSafronov/template/-/blob/main/README.md EOS end diff --git a/Makefile b/Makefile index 576e059..3a09208 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ install: build test lint template reset uninstall: - go clean -i gitlab.com/fuzzy-rp/template... + go clean -i gitlab.com/PavelSafronov/template... if [ -f ${BINARY} ] ; then rm ${BINARY} ; fi release-dry-run: build test lint @@ -46,9 +46,9 @@ release-local: build test lint goreleaser build --single-target brew-install: - brew tap fuzzy-rp/template https://gitlab.com/fuzzy-rp/template.git + brew tap PavelSafronov/template https://gitlab.com/PavelSafronov/template.git brew install template brew-uninstall: brew uninstall template - brew untap fuzzy-rp/template \ No newline at end of file + brew untap PavelSafronov/template \ No newline at end of file diff --git a/README.md b/README.md index 3d8129f..e9a8a96 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ The default profiles use [Visual Studio Code](https://code.visualstudio.com/) to ## Installation with Homebrew ```sh -brew tap fuzzy-rp/template https://gitlab.com/fuzzy-rp/template.git +brew tap PavelSafronov/template https://gitlab.com/PavelSafronov/template.git brew install template template reset ``` @@ -148,12 +148,12 @@ template reset ```sh brew uninstall template -brew untap fuzzy-rp/template +brew untap PavelSafronov/template ``` ## Installation with source -This repo is available as a go package [`gitlab.com/fuzzy-rp/template`](https://pkg.go.dev/gitlab.com/fuzzy-rp/template). +This repo is available as a go package [`gitlab.com/PavelSafronov/template`](https://pkg.go.dev/gitlab.com/PavelSafronov/template). To install, clone the repo and run these commands from the repo directory: ```sh diff --git a/go.mod b/go.mod index bb296ea..c8adc7c 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/fuzzy-rp/template +module gitlab.com/PavelSafronov/template go 1.19 diff --git a/main.go b/main.go index 82e9128..9931c07 100644 --- a/main.go +++ b/main.go @@ -278,7 +278,7 @@ func createSettings( } else { config, err := loadConfig(fullConfigPath) if err != nil { - return settings, fmt.Errorf("error loading config from %v: %w", fullConfigPath, err) + return settings, fmt.Errorf("error loading config from %v: %w\nConsider running `template reset` to recreate the config file. Keep in mind that `reset` will remove existing config.", fullConfigPath, err) } fmt.Printf("Loaded config from %v\n", fullConfigPath)