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

feat: make input names optional, -C flag for directory, --ext for input file type #55

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

nekowinston
Copy link
Contributor

@nekowinston nekowinston commented Oct 30, 2023

Adds -C to specify a directory for catwalk, also making all 4 image name arguments optional.
Adds --ext to specify file extension overrides when the inputs are omitted.
Changes the default output filename to preview.webp to standardize.

e.g.

$ pwd
/home/user
$ catwalk -C ~/Code/catppuccin/vscode/assets 

Catwalk would open latte.webp, frappe.webp, macchiato.webp, mocha.webp in that directory, and write into ~/Code/catppuccin/vscode/assets/preview.webp.

$ pwd
/home/user
$ catwalk -C ~/Code/catppuccin/vscode/assets -o foo.webp

Writes to ~/Code/catppuccin/vscode/assets/foo.webp to write to /home/user/foo.webp, specify -o $PWD/foo.webp.

--ext is added to change which file extensions for inputs it assumes, when unset.

$ pwd
$ catwalk -C ~/Code/catppuccin/vscode/assets --ext png

Opens latte.png, frappe.png, macchiato.png, mocha.png; writes to preview.webp.

@nekowinston nekowinston force-pushed the feat/catwalk-cwd branch 2 times, most recently from bbadf58 to 86ec35e Compare October 30, 2023 22:19
@nekowinston nekowinston changed the title feat: -C flag to specify working directory feat: make input names optional, -C flag for directory, --ext for input file type Oct 30, 2023
@nekowinston nekowinston merged commit b2ce59e into main Oct 30, 2023
@nekowinston nekowinston deleted the feat/catwalk-cwd branch October 30, 2023 22:45
@github-actions github-actions bot mentioned this pull request Oct 30, 2023
sgoudham pushed a commit that referenced this pull request Jun 7, 2024
… input file type (#55)

Adds `-C` to specify a directory for catwalk, also making all 4 image name arguments optional.
Adds `--ext` to specify file extension overrides when the inputs are omitted.
Changes the default output filename to preview.webp to standardize.

See the PR for examples.
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