diff --git a/plugins/cratedb/crash.go b/plugins/cratedb/crash.go index 0343e43f2..5597486b8 100644 --- a/plugins/cratedb/crash.go +++ b/plugins/cratedb/crash.go @@ -9,16 +9,16 @@ import ( func CrateDBCLI() schema.Executable { return schema.Executable{ - Name: "CrateDB Shell", - Runs: []string{"crash"}, - DocsURL: sdk.URL("https://crate.io/docs/crate/crash/en/latest/"), + Name: "CrateDB Shell", + Runs: []string{"crash"}, + DocsURL: sdk.URL("https://crate.io/docs/crate/crash/en/latest/"), NeedsAuth: needsauth.IfAll( needsauth.NotForHelpOrVersion(), needsauth.NotWithoutArgs(), ), Uses: []schema.CredentialUsage{ { - Name: credname.DatabaseCredentials, + Name: credname.DatabaseCredentials, Provisioner: crateProvisioner(), }, }, diff --git a/plugins/cratedb/database_credentials.go b/plugins/cratedb/database_credentials.go index 9750da9ca..c5248c452 100644 --- a/plugins/cratedb/database_credentials.go +++ b/plugins/cratedb/database_credentials.go @@ -1,7 +1,6 @@ package cratedb import ( - "github.com/1Password/shell-plugins/sdk" "github.com/1Password/shell-plugins/sdk/importer" "github.com/1Password/shell-plugins/sdk/provision" @@ -33,11 +32,10 @@ func DatabaseCredentials() schema.CredentialType { }, }, DefaultProvisioner: provision.NoOp(), - Importer: importer.TryEnvVarPair(defaultEnvVarMapping), - } + Importer: importer.TryEnvVarPair(defaultEnvVarMapping), + } } var defaultEnvVarMapping = map[string]sdk.FieldName{ - "CRATEPW": fieldname.Password, + "CRATEPW": fieldname.Password, } - diff --git a/plugins/cratedb/plugin.go b/plugins/cratedb/plugin.go index 33587b0f7..c390cd222 100644 --- a/plugins/cratedb/plugin.go +++ b/plugins/cratedb/plugin.go @@ -10,7 +10,7 @@ func New() schema.Plugin { Name: "cratedb", Platform: schema.PlatformInfo{ Name: "CrateDB", - Homepage: sdk.URL("https://crate.io/"), + Homepage: sdk.URL("https://crate.io/"), }, Credentials: []schema.CredentialType{ DatabaseCredentials(),