Skip to content

Conversation

@glondu
Copy link

@glondu glondu commented Nov 22, 2024

No description provided.

@lemmy
Copy link
Member

lemmy commented Nov 22, 2024

Follow-up of tlaplus/tlapm#177


command.add("--config");

return (String[]) command.toArray(new String[command.size()]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think there's any need for an awkward array conversion here. It should be possible to simplify this to return command; if you make the method return List<String> instead of String[]. The only use of this method is as an argument to new ProcessBuilder, and that constructor can take either String[] or List<String>.

Copy link
Author

Choose a reason for hiding this comment

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

Right. I just reproduced the constructCommand pattern already present in the same file. I will push a simplified version.

@glondu glondu force-pushed the support-for-tlapm-cmdline-api branch 2 times, most recently from 542b618 to c781c51 Compare November 25, 2024 07:49
@glondu glondu force-pushed the support-for-tlapm-cmdline-api branch from c781c51 to ea16f7a Compare November 25, 2024 07:53
@lemmy
Copy link
Member

lemmy commented Feb 27, 2025

IIRC, things changed over at the tlapm repo. What is the status of this PR?

@ahelwer
Copy link
Contributor

ahelwer commented Feb 27, 2025

This is no longer needed!

@lemmy lemmy closed this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants