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

fix: use shlex.join for command formatting in run function #305

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

trim21
Copy link
Contributor

@trim21 trim21 commented Dec 12, 2024

current command output is not very nice when some argument contains space, for example: $ git -C /export/nvme-512g/src/nixpkgs commit --verbose --message rtorrent: 0.10.0-unstable-2024-12-06 -> 0.10.0-unstable-2024-12-08 /export/nvme-512g/src/nixpkgs/pkgs/by-name/rt/rtorrent/package.nix

use shlex.join will be more readable, for example $ git -C /export/nvme-512g/src/nixpkgs commit --verbose --message 'rtorrent: 0.10.0-unstable-2024-12-06 -> 0.10.0-unstable-2024-12-08' /export/nvme-512g/src/nixpkgs/pkgs/by-name/rt/rtorrent/package.nix

@Mic92
Copy link
Owner

Mic92 commented Dec 12, 2024

@mergify queue

Copy link
Contributor

mergify bot commented Dec 12, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 2f7610a

@mergify mergify bot merged commit 2f7610a into Mic92:main Dec 12, 2024
5 checks passed
@trim21 trim21 deleted the log-cmd-as-shell-quoted branch December 12, 2024 13:45
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.

2 participants