Use kong instead of kingpin #1690
Annotations
10 errors
golangci-lint:
cmd/saml2aws/main.go#L13
"github.com/versent/saml2aws/v2" imported as saml2aws and not used
|
golangci-lint:
cmd/saml2aws/main.go#L15
"github.com/versent/saml2aws/v2/pkg/flags" imported and not used
|
golangci-lint:
cmd/saml2aws/main.go#L143
cli.CommonFlags undefined (type CLI has no field or method CommonFlags)
|
golangci-lint:
cmd/saml2aws/main.go#L151
cannot use cli.Script (variable of type struct{Profile string "help:\"The AWS profile to save the temporary credentials\" env:\"SAML2AWS_PROFILE\""; CredentialsFile string "help:\"The file that will cache the credentials retrieved from AWS\" env:\"SAML2AWS_CREDENTIALS_FILE\""; Shell string "help:\"Type of shell environment\" default:\"bash\" enum:\"bash,/bin/sh,powershell,fish,env\""}) as *flags.LoginExecFlags value in argument to commands.Script
|
golangci-lint:
cmd/saml2aws/main.go#L153
cannot use cli.Login (variable of type struct{Profile string "help:\"The AWS profile to save the temporary credentials\" env:\"SAML2AWS_PROFILE\""; DuoMFAOption string "help:\"The MFA option you want to use to authenticate with\" env:\"SAML2AWS_DUO_MFA_OPTION\" enum:\"Passcode,Duo Push\""; ClientID string "help:\"OneLogin client id, used to generate API access token\" env:\"ONELOGIN_CLIENT_ID\""; ClientSecret string "help:\"OneLogin client secret, used to generate API access token\" env:\"ONELOGIN_CLIENT_SECRET\""; MFAIPAddress string "help:\"IP address whitelisting defined in OneLogin MFA policies\" env:\"ONELOGIN_MFA_IP_ADDRESS\""; Force bool "help:\"Refresh credentials even if not expired\""; CredentialProcess bool "help:\"Enables AWS Credential Process support by outputting credentials to STDOUT in a JSON message\""; CredentialsFile string "help:\"The file that will cache the credentials retrieved from AWS\" env:\"SAML2AWS_CREDENTIALS_FILE\""; SAMLCache bool "help:\"Caches the SAML response\" env:\"SAML2AWS_CACHE_SAML\""; SAMLCacheFile string "help:\"The location of the SAML cache file\" env:\"SAML2AWS_SAML_CACHE_FILE\""; DownloadBrowser bool "help:\"Automatically download browsers for Browser IDP\" env:\"SAML2AWS_AUTO_BROWSER_DOWNLOAD\""; DisableSessions bool "help:\"Do not use Okta sessions\" env:\"SAML2AWS_OKTA_DISABLE_SESSIONS\""; DisableRemember bool "help:\"Do not remember Okta MFA device\" env:\"SAML2AWS_OKTA_DISABLE_REMEMBER_DEVICE\""}) as *flags.LoginExecFlags value in argument to commands.Login
|
golangci-lint:
cmd/saml2aws/main.go#L155
cannot use cli.Exec (variable of type struct{Profile string "help:\"The AWS profile to save the temporary credentials\" env:\"SAML2AWS_PROFILE\""; ExecProfile string "help:\"The AWS profile to utilize for command execution\" env:\"SAML2AWS_EXEC_PROFILE\""; CredentialsFile string "help:\"The file that will cache the credentials retrieved from AWS\" env:\"SAML2AWS_CREDENTIALS_FILE\""; Command []string "arg:\"\" name:\"command\" help:\"The command to execute\""}) as *flags.LoginExecFlags value in argument to commands.Exec
|
golangci-lint:
cmd/saml2aws/main.go#L157
cannot use cli.Console (variable of type struct{ExecProfile string "help:\"The AWS profile to utilize for console execution\" env:\"SAML2AWS_EXEC_PROFILE\""; Profile string "help:\"The AWS profile to save the temporary credentials\" env:\"SAML2AWS_PROFILE\""; Force bool "help:\"Refresh credentials even if not expired\""; Link bool "help:\"Present link to AWS console instead of opening browser\""; CredentialsFile string "help:\"The file that will cache the credentials retrieved from AWS\" env:\"SAML2AWS_CREDENTIALS_FILE\""}) as *flags.ConsoleFlags value in argument to commands.Console
|
golangci-lint:
cmd/saml2aws/main.go#L159
cannot use cli.ListRoles (variable of type struct{SAMLCache bool "help:\"Caches the SAML response\" env:\"SAML2AWS_CACHE_SAML\""; SAMLCacheFile string "help:\"The location of the SAML cache file\" env:\"SAML2AWS_SAML_CACHE_FILE\""}) as *flags.LoginExecFlags value in argument to commands.ListRoles
|
golangci-lint:
cmd/saml2aws/main.go#L161
cannot use cli.Configure (variable of type struct{AppID string "help:\"OneLogin app id required for SAML assertion\" env:\"ONELOGIN_APP_ID\""; ClientID string "help:\"OneLogin client id, used to generate API access token\" env:\"ONELOGIN_CLIENT_ID\""; ClientSecret string "help:\"OneLogin client secret, used to generate API access token\" env:\"ONELOGIN_CLIENT_SECRET\""; Subdomain string "help:\"OneLogin subdomain of your company account\" env:\"ONELOGIN_SUBDOMAIN\""; MFAIPAddress string "help:\"IP address whitelisting defined in OneLogin MFA policies\" env:\"ONELOGIN_MFA_IP_ADDRESS\""; Profile string "help:\"The AWS profile to save the temporary credentials\" env:\"SAML2AWS_PROFILE\""; ResourceID string "help:\"F5APM SAML resource ID of your company account\" env:\"SAML2AWS_F5APM_RESOURCE_ID\""; CredentialsFile string "help:\"The file that will cache the credentials retrieved from AWS\" env:\"SAML2AWS_CREDENTIALS_FILE\""; SAMLCache bool "help:\"Caches the SAML response\" env:\"SAML2AWS_CACHE_SAML\""; SAMLCacheFile string "help:\"The location of the SAML cache file\" env:\"SAML2AWS_SAML_CACHE_FILE\""; DisableSessions bool "help:\"Do not use Okta sessions\" env:\"SAML2AWS_OKTA_DISABLE_SESSIONS\""; DisableRemember bool "help:\"Do not remember Okta MFA device\" env:\"SAML2AWS_OKTA_DISABLE_REMEMBER_DEVICE\""}) as *flags.CommonFlags value in argument to commands.Configure (typecheck)
|
golangci-lint
issues found
|
Loading