You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/init.go
+28-48Lines changed: 28 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -18,17 +18,16 @@ import (
18
18
19
19
constCodacyApiBase="https://app.codacy.com"
20
20
21
-
varcodacyRepositoryTokenstring
22
21
varcodacyApiTokenstring
23
22
varremoteProviderstring
24
-
varremoteOrganizationNamestring
25
-
varremoteRepositoryNamestring
23
+
varorganizationstring
24
+
varremoteRepostring
26
25
27
26
funcinit() {
28
-
initCmd.Flags().StringVar(&codacyApiToken, "codacy-api-token", "", "optional codacy api token, if defined configurations will be fetched from codacy")
27
+
initCmd.Flags().StringVar(&codacyApiToken, "api-token", "", "optional codacy api token, if defined configurations will be fetched from codacy")
29
28
initCmd.Flags().StringVar(&remoteProvider, "provider", "", "optional provider (gh/bb/gl), if defined configurations will be fetched from codacy")
30
-
initCmd.Flags().StringVar(&remoteOrganizationName, "organization", "", "optional remote organization name, if defined configurations will be fetched from codacy")
31
-
initCmd.Flags().StringVar(&remoteRepositoryName, "repository", "", "optional remote repository name, if defined configurations will be fetched from codacy")
29
+
initCmd.Flags().StringVar(&organization, "organization", "", "optional remote organization name, if defined configurations will be fetched from codacy")
30
+
initCmd.Flags().StringVar(&remoteRepo, "repository", "", "optional remote repository name, if defined configurations will be fetched from codacy")
0 commit comments