Skip to content

Commit

Permalink
Rebranded plugin to DBT instead of dbt redshift
Browse files Browse the repository at this point in the history
  • Loading branch information
guru-pochineni committed Jun 29, 2023
1 parent 6325958 commit 2713487
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dbtredshift
package dbt

import (
"github.com/1Password/shell-plugins/sdk"
Expand All @@ -16,25 +16,28 @@ func DatabaseCredentials() schema.CredentialType {
Fields: []schema.CredentialField{
{
Name: fieldname.Host,
MarkdownDescription: "Redshift host to connect to.",
MarkdownDescription: "Host to connect to.",
Optional: true,
},
{
Name: fieldname.Port,
MarkdownDescription: "Port used to connect to Redshift.",
MarkdownDescription: "Port used to connect to.",
Optional: true,
},
{
Name: fieldname.User,
MarkdownDescription: "Redshift user to authenticate as.",
MarkdownDescription: "User to authenticate as.",
Optional: true,
},
{
Name: fieldname.Password,
MarkdownDescription: "Password used to authenticate to Redshift.",
MarkdownDescription: "Password used to authenticate to.",
Secret: true,
},
{
Name: fieldname.Database,
MarkdownDescription: "Database name to connect to.",
Optional: true,
},
},
DefaultProvisioner: provision.EnvVars(defaultEnvVarMapping),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dbtredshift
package dbt

import (
"testing"
Expand Down
8 changes: 4 additions & 4 deletions plugins/dbtredshift/dbtredshift.go → plugins/dbt/dbt.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dbtredshift
package dbt

import (
"github.com/1Password/shell-plugins/sdk"
Expand All @@ -7,11 +7,11 @@ import (
"github.com/1Password/shell-plugins/sdk/schema/credname"
)

func dbtredshiftCLI() schema.Executable {
func dbtCLI() schema.Executable {
return schema.Executable{
Name: "dbtredshift",
Name: "dbt",
Runs: []string{"dbt"},
DocsURL: sdk.URL("https://docs.getdbt.com/docs/core/connect-data-platform/redshift-setup"),
DocsURL: sdk.URL("https://docs.getdbt.com/docs/core/connect-data-platform/about-core-connections"),
NeedsAuth: needsauth.IfAll(
needsauth.NotForHelpOrVersion(),
needsauth.NotWithoutArgs(),
Expand Down
8 changes: 4 additions & 4 deletions plugins/dbtredshift/plugin.go → plugins/dbt/plugin.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dbtredshift
package dbt

import (
"github.com/1Password/shell-plugins/sdk"
Expand All @@ -7,16 +7,16 @@ import (

func New() schema.Plugin {
return schema.Plugin{
Name: "dbtredshift",
Name: "dbt",
Platform: schema.PlatformInfo{
Name: "DBT Redshift",
Name: "DBT",
Homepage: sdk.URL("https://www.getdbt.com"),
},
Credentials: []schema.CredentialType{
DatabaseCredentials(),
},
Executables: []schema.Executable{
dbtredshiftCLI(),
dbtCLI(),
},
}
}

0 comments on commit 2713487

Please sign in to comment.