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

Pivotal ID # 183440873: Storage Mode Option Ignored By CLI #621

Merged
merged 2 commits into from
Oct 4, 2022

Conversation

jhoanmanuelms
Copy link
Contributor

https://www.pivotaltracker.com/story/show/183440873

  • Include the storage mode in the files configuration
  • Add the parameter to the submission request
  • Update the tests

- Include the storage mode in the files configuration
- Add the parameter to the submission request
- Update the tests
@jhoanmanuelms jhoanmanuelms self-assigned this Oct 3, 2022
@jhoanmanuelms jhoanmanuelms requested a review from Juan-EBI October 3, 2022 15:55
Copy link
Contributor

@Juan-EBI Juan-EBI left a comment

Choose a reason for hiding this comment

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

LGTM please consider minor comment before merge

@@ -33,11 +34,11 @@ internal class SubmitAsyncCommand(
private val storageMode by option("-sm", "--storageMode", help = STORAGE_MODE)

override fun run() {
val mode = storageMode?.let { StorageMode.fromString(it) }
val mode = storageMode?.let { StorageMode.fromString(it) } ?: FIRE
Copy link
Contributor

Choose a reason for hiding this comment

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

we can use default option when register parameter

@@ -33,11 +34,11 @@ internal class SubmitCommand(
private val storageMode by option("-sm", "--storageMode", help = STORAGE_MODE)

override fun run() {
val mode = storageMode?.let { StorageMode.fromString(it) }
val mode = storageMode?.let { StorageMode.fromString(it) } ?: FIRE
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

@jhoanmanuelms jhoanmanuelms merged commit f103bf5 into master Oct 4, 2022
@jhoanmanuelms jhoanmanuelms deleted the bugfix/pivotal-#183440873-storage-mode branch October 4, 2022 18:05
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.

2 participants