Module tenlib.cli
CLI tools for ten.
Functions
def transform(*transforms: str, python: bool = False, keep_newline: bool = False) ‑> None
-
Applies one or several transforms from the transform module of ten.
Examples
$ echo -n 'a=3&b=2' | tf qs.parse json.encode {"a": "3", "b": "2"} $ echo -n 'a=3&b=2' | tf qs.parse json.encode -p '{"a": "3", "b": "2"}' $ cat /etc/passwd | tf base64.encode cm9vdDp4OjA6MDpyb290Oi9yb290Oi9iaW4vYmFzaApkYWVtb24…
def ten(filename: str) ‑> None
-
Creates a new ten script and opens it.