From 1e1bfdd6ea160f0da7d5dac8fa8b60bfee5b3f51 Mon Sep 17 00:00:00 2001 From: "Alex (@enenumxela)" <62714471+enenumxela@users.noreply.github.com> Date: Sun, 20 Oct 2024 20:09:09 +0300 Subject: [PATCH] chore(*): - --- .github/workflows/build.yml | 2 +- .github/workflows/dockerhub-push.yaml | 2 +- .github/workflows/lint.yml | 6 +----- .vscode/extenstions.json | 6 +++--- .vscode/settings.json | 15 +++++++++++---- README.md | 2 +- cmd/xurlfind3r/main.go | 4 ++-- 7 files changed, 20 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 20b722b..fec6d63 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,4 +42,4 @@ jobs: - name: Go build run: go build -v . - working-directory: ./cmd/xsubfind3r \ No newline at end of file + working-directory: ./cmd/xurlfind3r \ No newline at end of file diff --git a/.github/workflows/dockerhub-push.yaml b/.github/workflows/dockerhub-push.yaml index 280bb73..0371fb7 100644 --- a/.github/workflows/dockerhub-push.yaml +++ b/.github/workflows/dockerhub-push.yaml @@ -1,4 +1,4 @@ -name: 🐋 DockerHub Push +name: 🐳 DockerHub Push on: workflow_run: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1860484..0bc10d4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,5 +1,4 @@ -name: 💅🏻 Lint -name: 💅🏻 Lint +name: 💅 Lint on: push: @@ -28,7 +27,6 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 - uses: actions/setup-go@v5 with: go-version: '>=1.23' go-version: '>=1.23' @@ -41,9 +39,7 @@ jobs: - name: Run golangci-lint uses: golangci/golangci-lint-action@v6 - uses: golangci/golangci-lint-action@v6 with: - version: v1.61.0 version: v1.61.0 args: --timeout 5m working-directory: . \ No newline at end of file diff --git a/.vscode/extenstions.json b/.vscode/extenstions.json index 7203cb3..b32e3d1 100644 --- a/.vscode/extenstions.json +++ b/.vscode/extenstions.json @@ -1,5 +1,5 @@ { - "recommendations": [ - "golang.go" - ] + "recommendations": [ + "golang.go" + ] } \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 1a653cd..386b8b4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,13 @@ { - "go.lintTool": "golangci-lint", - "go.lintFlags": [ - "--fast" - ] + "go.lintTool": "golangci-lint", + "go.lintFlags": [ + "--fast" + ], + "[go]": { + "editor.defaultFormatter": "golang.go", + "editor.formatOnSave": false + }, + "gopls": { + "ui.semanticTokens": true + } } \ No newline at end of file diff --git a/README.md b/README.md index da0450a..dad2ace 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,7 @@ USAGE: xurlfind3r [OPTIONS] CONFIGURATION: - -c, --configuration string configuration file (default: $HOME/.cfg/xurlfind3r/config.yaml) + -c, --configuration string configuration file (default: $HOME/.config/xurlfind3r/config.yaml) INPUT: -d, --domain string[] target domain diff --git a/cmd/xurlfind3r/main.go b/cmd/xurlfind3r/main.go index 07e0ed0..57ff962 100644 --- a/cmd/xurlfind3r/main.go +++ b/cmd/xurlfind3r/main.go @@ -65,7 +65,7 @@ func init() { h += fmt.Sprintf(" %s [OPTIONS]\n", configuration.NAME) h += "\nCONFIGURATION:\n" - defaultConfigurationFilePath := strings.ReplaceAll(configuration.ConfigurationFilePath, configuration.UserDotConfigDirectoryPath, "$HOME/.cfg") + defaultConfigurationFilePath := strings.ReplaceAll(configuration.ConfigurationFilePath, configuration.UserDotConfigDirectoryPath, "$HOME/.config") h += fmt.Sprintf(" -c, --configuration string configuration file (default: %s)\n", defaultConfigurationFilePath) h += "\nINPUT:\n" @@ -106,7 +106,7 @@ func init() { viper.SetConfigFile(configurationFilePath) viper.AutomaticEnv() - viper.SetEnvPrefix("XSUBFIND3R") + viper.SetEnvPrefix("XURLFIND3R") viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) if err := viper.ReadInConfig(); err != nil {