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

Update cmd.js #58

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Update cmd.js #58

wants to merge 6 commits into from

Conversation

qbytx
Copy link

@qbytx qbytx commented Sep 27, 2024

PR Description:

  • Directory Handling: Uses path.resolve() for consistent paths; defaults to the current directory (.) when no valid argument is provided.
  • Code Cleanup:
    • Added semicolons to follow ECMAScript guidelines, preventing ASI issues.
    • Removed redundant spread operator from args initialization.

These changes improve script reliability and readability. Let me know if you need any adjustments.

I ran my own tests but felt it was unnecessary to include them in the pr.

Signed-off-by: @qbytx / Eva O'Brien evaobrien.contact@gmail.com

Checklist

  • run npm run test and npm run benchmark
    // tests passed for cmd.js

  • tests and/or benchmarks are included
    // no features added

  • documentation is changed or added
    // documentation is unchanged

  • commit message and code follows the Developer's Certification of Origin
    and the Code of conduct

cmd.js Outdated Show resolved Hide resolved
cmd.js Outdated Show resolved Hide resolved
cmd.js Outdated Show resolved Hide resolved
Eva and others added 3 commits September 27, 2024 15:11
Co-authored-by: Frazer Smith <frazer.dev@icloud.com>
Signed-off-by: Eva <joshua3d.contact@protonmail.com>
Co-authored-by: Frazer Smith <frazer.dev@icloud.com>
Signed-off-by: Eva <joshua3d.contact@protonmail.com>
Co-authored-by: Frazer Smith <frazer.dev@icloud.com>
Signed-off-by: Eva <joshua3d.contact@protonmail.com>
@mcollina
Copy link
Member

Can you avoid any formatting changes? We don't use semicolons in this org. Please restore all the spread operators too.

@mcollina
Copy link
Member

CI is failing.

- removed semicolons to be in line with organization style
- added spread operator to initialization of args
@qbytx
Copy link
Author

qbytx commented Sep 28, 2024

Can you avoid any formatting changes? We don't use semicolons in this org. Please restore all the spread operators too.

Certainly; just pushed a commit. 👍 and I will address any continuing CI failures soon

- removed double quotes
- added newline at end of file
@qbytx
Copy link
Author

qbytx commented Oct 1, 2024

Will address these last CI issues this week

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.

3 participants