8000 Change GraalVM build process to allow multiple Clikt commands + some oauth starting by hrothwell · Pull Request #15 · hrothwell/mal-cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Change GraalVM build process to allow multiple Clikt commands + some oauth starting #15

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

Merged
merged 4 commits into from
Oct 4, 2022

Conversation

hrothwell
Copy link
Owner
@hrothwell hrothwell commented Oct 4, 2022

starting the oauth process as documented by mal. need to figure out 'pausing' or something

This PR got taken over by fixing native-image stuff with using subcommands(). I literally jumped out of bed at 12am to do this because I remembered reading this in the documentation for agentlib

val client_id: String
val client_id: String,
// val oauth_authorization_code: String?,
// val oauth_token: String? // TODO fine to keep this here?
Copy link
Owner Author

Choose a reason for hiding this comment

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

need to ignore missing keys or something using kotlinx, didn't wanna bother with it rn

@hrothwell hrothwell changed the title Starting oauth process Change GraalVM build process to allow multiple Clikt commands + some oauth starting Oct 4, 2022
Comment on lines +9 to +12
call java -agentlib:native-image-agent=config-merge-dir=%configPath% -jar %root%build\libs\anime-cli-1.0-SNAPSHOT-all.jar
call java -agentlib:native-image-agent=config-merge-dir=%configPath% -jar %root%build\libs\anime-cli-1.0-SNAPSHOT-all.jar login
call java -agentlib:native-image-agent=config-merge-dir=%configPath% -jar %root%build\libs\anime-cli-1.0-SNAPSHOT-all.jar random
call java -agentlib:native-image-agent=config-merge-dir=%configPath% -jar %root%build\libs\anime-cli-1.0-SNAPSHOT-all.jar random -u hone_the_rat -l completed
Copy link
Owner Author

Choose a reason for hiding this comment

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

see documentation on agentlib

It can be necessary to run the target application more than once with different inputs to trigger separate execution paths for a better coverage of dynamic accesses. The agent supports this with the config-merge-dir option which adds the intercepted accesses to an existing set of configuration files

I read it and literally didn't even think about that until hours in 🤦

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
0