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

support quotation to tokenize long commands #10

Open
k5342 opened this issue Feb 18, 2023 · 0 comments
Open

support quotation to tokenize long commands #10

k5342 opened this issue Feb 18, 2023 · 0 comments

Comments

@k5342
Copy link
Owner

k5342 commented Feb 18, 2023

We cannot run following a long command because we currently tokenize the command merely by separating it with spaces. Supporting quotation is very useful to support shell features such as pipe and redirects.

# we can't do for now
- name: ark-server-status
  exec: /bin/bash -c "systemctl status ark.service | sed -E 's/([a-zA-Z]Password=)[^?]+/\1.../g'"
  description: show systemd unit status for ARK server

But we don't think this is not a high priority because we can use this workaround by calling the long command line as a shell script.

- name: ark-server-status
  exec: /bin/bash show-status.sh
  description: show systemd unit status for ARK server
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

1 participant