Skip to content

Commit

Permalink
chore(*): -
Browse files Browse the repository at this point in the history
  • Loading branch information
enenumxela committed Oct 20, 2024
1 parent 5b6cdb5 commit 1e1bfdd
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
-
name: Go build
run: go build -v .
working-directory: ./cmd/xsubfind3r
working-directory: ./cmd/xurlfind3r
2 changes: 1 addition & 1 deletion .github/workflows/dockerhub-push.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🐋 DockerHub Push
name: 🐳 DockerHub Push

on:
workflow_run:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: 💅🏻 Lint
name: 💅🏻 Lint
name: 💅 Lint

on:
push:
Expand Down Expand Up @@ -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'
Expand All @@ -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: .
6 changes: 3 additions & 3 deletions .vscode/extenstions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"recommendations": [
"golang.go"
]
"recommendations": [
"golang.go"
]
}
15 changes: 11 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cmd/xurlfind3r/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 1e1bfdd

Please sign in to comment.