Skip to content

Commit

Permalink
update commands in README.md to those that work
Browse files Browse the repository at this point in the history
  • Loading branch information
tdyas committed Oct 30, 2024
1 parent cbd9daa commit e45de10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,14 @@ pants test helloworld/translator/translator_test.py -- -k test_unknown_phrase #

## Create a PEX binary

The `package` goal requires specifying a target which can be packaged. In this case, the there is a `pex_binary` target with the name `pex_binary` in the `helloworld/BUILD` file.

```
pants package helloworld/main.py
pants package helloworld:pex_binary
```

The pex file is output to `dist/helloworld/pex_binary.pex` and can be executed directly.

## Run a binary directly

```
Expand Down

0 comments on commit e45de10

Please sign in to comment.