Zxpy Versions Save

Shell scripts made simple 🐚

1.4.4

2 years ago

Previously, only a few select ~'...' statements were being printed out, rather than any bash-string without any assignments to its left. This patch version fixes printing logic.

1.4.3

2 years ago

Fixes the previous broken build, refer #19

1.4.2

2 years ago

Refer #18

1.4.1

2 years ago
  • __name__ will now be '__main__', just like how it is when running any other file directly
  • Passing additional arguments to zxpy command is now supported

1.4.0

2 years ago

Anything passed as an f-string into a bash string will be automatically quoted with shlex.quote.

i.e., ~f'{xyz}' is the same as ~f'{shlex.quote(xyz)}

1.3.0

2 years ago
  • Alternate method of invoking shell commands: stdout, stderr, return_code = ~'...'. Fixes #6
  • Add a few tests.

1.2.5

2 years ago
  • Removes zxpy executable from sys.argv, to mimic default python behaviour (#10)

1.2.4

2 years ago
  • Finally figured out the correct way to handle expr transformations. Cleaned up a bunch of AST code.
  • Shell strings and shell f-strings should be usable inside call statements now, eg. print(~'echo test')

1.2.3

2 years ago
  • Renamed zx.start() to zx.install() for clarity

1.2.2

2 years ago
  • Fix using string attributes over bash f-strings, i.e. (~f'...').splitlines()