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

add -c flag #35

Closed
josharian opened this issue Mar 2, 2019 · 2 comments
Closed

add -c flag #35

josharian opened this issue Mar 2, 2019 · 2 comments

Comments

@josharian
Copy link

Feature request: add a -c flag to pass a program to evaluate on the command line. This facilitates fuzzing and quick demos.

Go: google/starlark-go#47
Rust: google/starlark-rust#36

Thanks!

@laurentlb
Copy link
Contributor

To clarify, this issue is for Starlark-in-java (instructions to use are here: #24).

bazel-io pushed a commit to bazelbuild/bazel that referenced this issue Mar 18, 2019
**Related issues:**
- add -c flag [#35](bazelbuild/starlark#35)
- improve starlark-in-java installation documentation [#24](bazelbuild/starlark#24)

**Examples:**
$ bazel run :Starlark -- -c "print(1)"
1
$ bazel run :Starlark -- -c "print(1)" arg3
USAGE: Starlark [-c "\<cmdLineProgram\>" | \<fileName\>]

Closes #7683.

PiperOrigin-RevId: 239028987
@laurentlb
Copy link
Contributor

laurentlb commented Mar 18, 2019

Implemented by @Quarz0

luca-digrazia pushed a commit to luca-digrazia/DatasetCommitsDiffSearch that referenced this issue Sep 4, 2022
    **Related issues:**
    - add -c flag [#35](bazelbuild/starlark#35)
    - improve starlark-in-java installation documentation [#24](bazelbuild/starlark#24)

    **Examples:**
    $ bazel run :Starlark -- -c "print(1)"
    1
    $ bazel run :Starlark -- -c "print(1)" arg3
    USAGE: Starlark [-c "\<cmdLineProgram\>" | \<fileName\>]

    Closes #7683.

    PiperOrigin-RevId: 239028987
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

2 participants