Skip to content

Commit a888d1c

Browse files
bala-cegaccraw
authored andcommitted
fixing the Lint errors
Signed-off-by: Amanda Crawley <[email protected]>
1 parent f848651 commit a888d1c

File tree

4 files changed

+16
-18
lines changed

4 files changed

+16
-18
lines changed

plugins/binance/api_key.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
func APIKey() schema.CredentialType {
1313
return schema.CredentialType{
1414
Name: credname.APIKey,
15-
DocsURL: sdk.URL("https://github.com/binance/binance-cli"),
16-
ManagementURL: sdk.URL("https://www.binance.com/en/my/settings/api-management"),
15+
DocsURL: sdk.URL("https://github.com/binance/binance-cli"),
16+
ManagementURL: sdk.URL("https://www.binance.com/en/my/settings/api-management"),
1717
Fields: []schema.CredentialField{
1818
{
1919
Name: fieldname.APIKey,
@@ -49,7 +49,6 @@ func APIKey() schema.CredentialType {
4949
}
5050

5151
var defaultEnvVarMapping = map[string]sdk.FieldName{
52-
"BINANCE_API_KEY": fieldname.APIKey,
53-
"BINANCE_API_SECRET": fieldname.APISecret,
52+
"BINANCE_API_KEY": fieldname.APIKey,
53+
"BINANCE_API_SECRET": fieldname.APISecret,
5454
}
55-

plugins/binance/api_key_test.go

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,23 @@ package binance
22

33
import (
44
"testing"
5-
5+
66
"github.com/1Password/shell-plugins/sdk"
77
"github.com/1Password/shell-plugins/sdk/plugintest"
88
"github.com/1Password/shell-plugins/sdk/schema/fieldname"
99
)
10-
10+
1111
func TestAPIKeyProvisioner(t *testing.T) {
1212
plugintest.TestProvisioner(t, APIKey().DefaultProvisioner, map[string]plugintest.ProvisionCase{
1313
"default": {
14-
ItemFields: map[sdk.FieldName]string{
15-
fieldname.APIKey: "jThmEycY2J0RgJgNNrWQBq2raPzKvxCkcwPQFk8AuWUu5QxQSWaItIB1qEXAMPLE",
14+
ItemFields: map[sdk.FieldName]string{
15+
fieldname.APIKey: "jThmEycY2J0RgJgNNrWQBq2raPzKvxCkcwPQFk8AuWUu5QxQSWaItIB1qEXAMPLE",
1616
fieldname.APISecret: "jThmEycY2J0RgJgNNrWQBq2raPzKvxCkcwPQFk8AuWUu5QxQSWaItIB1qEXAMPLE",
1717
},
1818
ExpectedOutput: sdk.ProvisionOutput{
1919
Environment: map[string]string{
20-
"BINANCE_API_KEY": "jThmEycY2J0RgJgNNrWQBq2raPzKvxCkcwPQFk8AuWUu5QxQSWaItIB1qEXAMPLE",
20+
"BINANCE_API_KEY": "jThmEycY2J0RgJgNNrWQBq2raPzKvxCkcwPQFk8AuWUu5QxQSWaItIB1qEXAMPLE",
2121
"BINANCE_API_SECRET": "jThmEycY2J0RgJgNNrWQBq2raPzKvxCkcwPQFk8AuWUu5QxQSWaItIB1qEXAMPLE",
22-
2322
},
2423
},
2524
},
@@ -29,14 +28,14 @@ func TestAPIKeyProvisioner(t *testing.T) {
2928
func TestAPIKeyImporter(t *testing.T) {
3029
plugintest.TestImporter(t, APIKey().Importer, map[string]plugintest.ImportCase{
3130
"environment": {
32-
Environment: map[string]string{
33-
"BINANCE_API_KEY": "jThmEycY2J0RgJgNNrWQBq2raPzKvxCkcwPQFk8AuWUu5QxQSWaItIB1qEXAMPLE",
31+
Environment: map[string]string{
32+
"BINANCE_API_KEY": "jThmEycY2J0RgJgNNrWQBq2raPzKvxCkcwPQFk8AuWUu5QxQSWaItIB1qEXAMPLE",
3433
"BINANCE_API_SECRET": "jThmEycY2J0RgJgNNrWQBq2raPzKvxCkcwPQFk8AuWUu5QxQSWaItIB1qEXAMPLE",
3534
},
3635
ExpectedCandidates: []sdk.ImportCandidate{
3736
{
3837
Fields: map[sdk.FieldName]string{
39-
fieldname.APIKey: "jThmEycY2J0RgJgNNrWQBq2raPzKvxCkcwPQFk8AuWUu5QxQSWaItIB1qEXAMPLE",
38+
fieldname.APIKey: "jThmEycY2J0RgJgNNrWQBq2raPzKvxCkcwPQFk8AuWUu5QxQSWaItIB1qEXAMPLE",
4039
fieldname.APISecret: "jThmEycY2J0RgJgNNrWQBq2raPzKvxCkcwPQFk8AuWUu5QxQSWaItIB1qEXAMPLE",
4140
},
4241
},

plugins/binance/binance_cli.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99

1010
func BinanceCLI() schema.Executable {
1111
return schema.Executable{
12-
Name: "Binance CLI",
13-
Runs: []string{"binance-cli"},
14-
DocsURL: sdk.URL("https://github.com/binance/binance-cli"),
12+
Name: "Binance CLI",
13+
Runs: []string{"binance-cli"},
14+
DocsURL: sdk.URL("https://github.com/binance/binance-cli"),
1515
NeedsAuth: needsauth.IfAll(
1616
needsauth.NotForHelpOrVersion(),
1717
needsauth.NotWithoutArgs(),

plugins/binance/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ func New() schema.Plugin {
1010
Name: "binance",
1111
Platform: schema.PlatformInfo{
1212
Name: "Binance",
13-
Homepage: sdk.URL("https://binance.com"),
13+
Homepage: sdk.URL("https://binance.com"),
1414
},
1515
Credentials: []schema.CredentialType{
1616
APIKey(),

0 commit comments

Comments
 (0)