Skip to content

0.5.0

Latest
Compare
Choose a tag to compare
@anki-code anki-code released this 05 Jun 14:36
· 1 commit to master since this release
37aa82f

Presets update.

Usage: <command> | <command> | ... | pl "<Python code or preset name>"
Example: echo "123" | pl "line[::-1]"
Example: echo " 123 " | pl strip
Presets:
  drop: Drop empty lines.
  len: 'len(line)'
  strip: 'line.strip()'
  lstrip: 'line.lstrip()'
  rstrip: 'line.rstrip()'
  split: func
  fromlist: Read python list representation and return the element by index.
  lower: 'line.lower()'
  upper: 'line.upper()'
  title: 'line.title()'
  startswith: func
  endswith: func