Skip to content

Comments

feat: Add --out and --patches arguments to list-patches command#60

Open
prateek-who wants to merge 9 commits intoMorpheApp:devfrom
prateek-who:list-patches-out-flag
Open

feat: Add --out and --patches arguments to list-patches command#60
prateek-who wants to merge 9 commits intoMorpheApp:devfrom
prateek-who:list-patches-out-flag

Conversation

@prateek-who
Copy link
Contributor

@prateek-who prateek-who commented Feb 21, 2026

As the title says, they have been added.

Completely written by me this time, lmaoo. Please be harsh on the review aswell. I seem to be finally learning something and want to continue to do so. Hopefully I am able to do more by myself soon!

Added --out and -- patches flag for list-command.
@prateek-who
Copy link
Contributor Author

Unrelated to this. But there are multiple issues related to keystore. What are the problems there?

@LisoUseInAIKyrios
Copy link
Contributor

I don't use keystore and have never tried using it. If reproduction steps exist then someone can make an issue for it.

@prateek-who
Copy link
Contributor Author

They already exist. #32 #34 #57 are all keystore issues. Was wondering what it was all about. Will check them out

Added --out and -- patches flag for list-command.
@LisoUseInAIKyrios LisoUseInAIKyrios changed the title feat: Added --out and --patches flags for list-patches command feat: Add --out and --patches arguments for list-patches command Feb 22, 2026
@LisoUseInAIKyrios LisoUseInAIKyrios changed the title feat: Add --out and --patches arguments for list-patches command feat: Add --out and --patches arguments to list-patches command Feb 22, 2026
@LisoUseInAIKyrios LisoUseInAIKyrios linked an issue Feb 22, 2026 that may be closed by this pull request
2 tasks
@LisoUseInAIKyrios
Copy link
Contributor

Will merge tomorrow if there's no new reviews or changes

?: withUniversalPatches

val patches = loadPatchesFromJar(patchesFiles).withIndex().toList()
if (patchFiles.isNullOrEmpty()) return logger.warning("No patch file provided. Please specify one or more mpp files using --patches")

Choose a reason for hiding this comment

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

Instead, add required = true to the option.
PatchCommand.kt is useful as a reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea, that's better. Will change this.


@Option(
names = ["--out"],
description = ["Path to the output text file."],

Choose a reason for hiding this comment

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

I think there should be a phrase somewhere that says "instead of stdout."
This makes it clear to someone seeing the usage of this command for the first time that the --out option is optional and that by default it will print to standard output.

My suggestion:

Suggested change
description = ["Path to the output text file."],
description = ["Path to output the patch list to instead of stdout."],

This "Path to V O to." sentence is often used in PatchCommand, so I'm sure this is fine

@prateek-who
Copy link
Contributor Author

@kitadai31 Could you check if it's better now?

@kitadai31
Copy link

@kitadai31 Could you check if it's better now?

Good!

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.

feat: Add --out file output parameter to list-patches command

3 participants