Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add text user interface for deleting s3 bucket #36

Merged
merged 3 commits into from
Jan 14, 2024
Merged

Conversation

nao1215
Copy link
Owner

@nao1215 nao1215 commented Jan 13, 2024

No description provided.

}

// s3hubDeleteContentsStatus is the status of the delete contents operation.
func newS3hubDeleteContentsModel() (*s3hubDeleteContentsModel, error) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
newS3hubDeleteContentsModel is unused (deadcode)

startIndex = len(m.bucketSets) - windowHeight
endIndex = len(m.bucketSets)
}
} else {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
elseif: can replace 'else {if cond {}}' with 'else if cond {}' (gocritic)

// region is the AWS region that the user wants to create the S3 bucket.
region model.Region
// choice is the currently selected menu item.
choice *ui.Choice

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
choice is unused (structcheck)

// quitting is true when the user has quit the application.
quitting bool
// awsConfig is the AWS configuration.
awsConfig *model.AWSConfig

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
field awsConfig is unused (unused)

// awsConfig is the AWS configuration.
awsConfig *model.AWSConfig
// awsProfile is the AWS profile.
awsProfile model.AWSProfile

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
field awsProfile is unused (unused)

// awsProfile is the AWS profile.
awsProfile model.AWSProfile
// region is the AWS region that the user wants to create the S3 bucket.
region model.Region

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
field region is unused (unused)

// choice is the currently selected menu item.
choice *ui.Choice
// app is the S3 application service.
app *di.S3App

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
field app is unused (unused)

// app is the S3 application service.
app *di.S3App
// ctx is the context.
ctx context.Context

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
field ctx is unused (unused)

This comment has been minimized.

This comment has been minimized.

Copy link

HOTTEST report

PASS FAIL SKIP TOTAL DURATION
264 0 7 271 7.411457253s

Reported by hottest

Copy link

Code Metrics Report

main (a01b622) #36 (b3901c7) +/-
Coverage 32.7% 28.6% -4.1%
Test Execution Time 33s 11s -22s
Details
  |                     | main (a01b622) | #36 (b3901c7) |  +/-  |
  |---------------------|----------------|---------------|-------|
- | Coverage            |          32.7% |         28.6% | -4.1% |
  |   Files             |             38 |            39 |    +1 |
  |   Lines             |           1103 |          1262 |  +159 |
  |   Covered           |            361 |           361 |     0 |
+ | Test Execution Time |            33s |           11s |  -22s |

Code coverage of files in pull request scope (0.4% → 0.3%)

Files Coverage +/-
ui/common.go 2.6% -1.4%
ui/s3hub/command.go 0.0% 0.0%
ui/s3hub/create.go 0.0% 0.0%
ui/s3hub/delete.go 0.0% 0.0%
ui/s3hub/list.go 0.0% 0.0%
ui/s3hub/root.go 0.0% 0.0%

Reported by octocov

@nao1215 nao1215 merged commit 7ed38f2 into main Jan 14, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant