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

Feedback / Improvements / Change requests #3

Open
7 of 8 tasks
kabaros opened this issue Apr 24, 2020 · 3 comments
Open
7 of 8 tasks

Feedback / Improvements / Change requests #3

kabaros opened this issue Apr 24, 2020 · 3 comments
Assignees

Comments

@kabaros
Copy link
Owner

kabaros commented Apr 24, 2020

Some improvements to do:


For setting gh_token globally, the way it would work, is that we set some file at home directory (.pkpconfig or similar) and add the token to it. Similar to what tools like git or aws cli do, and read that file when using the tool. (make sure this works on windows) For setting Github token, you just need to prefix the command with GITHUB_TOKEN=my_personal_token i.e. GITHUB_TOKEN=my_personal_token pkp-plugin bump

@kabaros kabaros changed the title Feedback on first iteration Feedback / Improvements / Change requests Apr 24, 2020
@kabaros kabaros transferred this issue from kabaros/plugin-gallery May 9, 2020
@kabaros
Copy link
Owner Author

kabaros commented Jun 3, 2020

For escaping the command lines, I moved to this library which handles escaping and makes dealing with the command line easier execa.

For the diff, I thought relying on git should be similar between platforms. It's a prerequisite for that command and would feel if it git doesn't exist, or not being ran on git repo. The command line gives feedback to that effect: https://github.com/kabaros/pkp-plugin-cli/blob/master/src/validate-new-release/index.js#L25

@asmecher Let me know if you disagree, or think more should be done regarding these two points

@kabaros
Copy link
Owner Author

kabaros commented Jun 3, 2020

For using temp files, I did it like this:

const { stdout: tempFileName } = await execa('mktemp', `${fileName}XXXXXXXX`)

ps: I just realised there is one instance where I am still writing to the wrong place, so I will update it too now (fixed now)

@asmecher
Copy link
Collaborator

asmecher commented Jun 3, 2020

For the diff, I thought relying on git should be similar between platforms...

Ah, I can't find the comment I made before, but I probably misread a git diff command as a straight-up diff command. Agreed that we can rely on git being present.

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

No branches or pull requests

3 participants