@@ -149,14 +149,6 @@ Default path for configuration file is based on the following priority order:
149
149
// Manually prompt for missing args:
150
150
151
151
// Credentials
152
- if args .AccessKey == "" {
153
- _ , _ = interactive .Println ()
154
- args .AccessKey , err = promptAccessKey (ctx )
155
- if err != nil {
156
- return err
157
- }
158
- }
159
-
160
152
if args .SecretKey == "" {
161
153
_ , _ = interactive .Println ()
162
154
args .SecretKey , err = promptSecret (ctx )
@@ -386,36 +378,6 @@ func promptSecret(ctx context.Context) (string, error) {
386
378
}
387
379
}
388
380
389
- func promptAccessKey (ctx context.Context ) (string , error ) {
390
- accessKey , err := interactive .Readline (& interactive.ReadlineConfig {
391
- Ctx : ctx ,
392
- PromptFunc : func (value string ) string {
393
- accessKey := "access-key"
394
- switch {
395
- case validation .IsUUID (value ):
396
- accessKey = terminal .Style (accessKey , color .FgBlue )
397
- }
398
- return terminal .Style (fmt .Sprintf ("Enter a valid %s: " , accessKey ), color .Bold )
399
- },
400
- ValidateFunc : func (s string ) error {
401
- if validation .IsAccessKey (s ) {
402
- return nil
403
- }
404
- return fmt .Errorf ("invalid access-key" )
405
- },
406
- })
407
- if err != nil {
408
- return "" , err
409
- }
410
-
411
- switch {
412
- case validation .IsAccessKey (accessKey ):
413
- return accessKey , nil
414
- default :
415
- return "" , fmt .Errorf ("invalid access-key: '%v'" , accessKey )
416
- }
417
- }
418
-
419
381
const logo = `
420
382
@@@@@@@@@@@@@@@.
421
383
@@@@@@@@@@@@@@@@@@@@ __ __ _
0 commit comments