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: add support for output modifier flags #14
feat: add support for output modifier flags #14
Conversation
The point of this package is to abstract away the command-line flags. I think this should instead be an option called |
Got it 👍 Will update accordingly. As a follow-up, I was wondering if it wouldn't be useful to also be able to read from a file. I could create a new function specifically for that or add a new argument |
I think the most common use-case for this package are short scripts you can just have inline. If you need to pass a file, you can simply call |
Right! Let's keep it simple. I added a new argument |
I think it should be an options-object.
|
Don't forget to add it to the readme. Use this formatting: https://github.com/sindresorhus/boxen#options |
- update documentation to accomodate new changes - link osascript's man page to docs
|
6433700
to
ace86cc
Compare
650f18d
to
a59bcaa
Compare
a59bcaa
to
c466411
Compare
Currently, only
-e
option is used to execute an inline script.This PR:
-s
(as specified here).-s
flag behaviour worksI'm not sure if this solves #4, but using the
-s s
flag, it returns a string that can be parsed into an array. Neverthless, I think it is useful to have this option available to mirror the behaviour of theosascript
command,.Output without
-s
flag:Output with
-s
flag: