@@ -20,63 +20,9 @@ Then, to install `pwr`, run:
2020``` bash
2121pwrup
2222```
23- ## Script WRAPS (JS and Python)
24- {lang} = js | py
2523
26- ### REPL
27- ` pwr {lang} repl `
28- Runs a REPL where you can type scripts.
29-
30- ` pwr {lang} repl -f {name_of_file} `
31- Runs the repl over a file.
32- It will read and execute the file first (and create it if it doesn't exist).
33- It will also store all CLI commands you type inside of it (after evaluating them).
34- Press enter in the CLI to re-run the whole file (useful if you want to code in the file instead of the CLI).
35-
36- ` pwr {lang} repl -f {name_of_file} -w `
37- It will read and execute the file first (and create it if it doesn't exist).
38- Then it will execute the file every time you save it.
39- It will not listen to CLI input if you use this option ("-w").
40-
41- ### New
42- ` pwr {lang} new -f {name_of_file} `
43- Creates a new file of the specified name for the script wrap.
44- It uses a template for that language.
45-
46- ### Build
47- ` pwr {lang} build -f {name_of_file} `
48- Builds the target script file.
49-
50- ### Deploy
51- ` pwr deploy `
52- Deploys the build directory.
53-
54- ` pwr {lang} deploy `
55- Deploys the build directory. (Same as ` pwr deploy ` )
56-
57- ` pwr {lang} deploy -f {name_of_file} `
58- Builds and then deploys the script file.
59-
60- ## TODO: Examples PWR app usage:
61- Input: ` pwr wrap://ens/wrap-echo.eth Hello world! `
62- Output: ` Hello world! `
63-
64- Input: ` pwr ens/wrap-echo.eth Hello world! `
65- Output: ` Hello world! `
66-
67- Input: ` pwr wrap-echo.eth Hello world! `
68- Output: ` Hello world! `
69-
70- Input: ` pwr wrap://ipfs/QmebzauKAXoYbywLAYdBvKyPhWsDoHfkUC4wffWvjighKT Hello world! `
71- Output: ` Hello world! `
72-
73- Input: ` pwr ipfs/QmebzauKAXoYbywLAYdBvKyPhWsDoHfkUC4wffWvjighKT Hello world! `
74- Output: ` Hello world! `
75-
76- Input: ` pwr ipfs://QmebzauKAXoYbywLAYdBvKyPhWsDoHfkUC4wffWvjighKT Hello world! `
77- Output: ` Hello world! `
78-
79- Input: ` pwr QmebzauKAXoYbywLAYdBvKyPhWsDoHfkUC4wffWvjighKT Hello world! `
80- Output: ` Hello world! `
24+ [ Example PWR Usage] ( ./docs/pwr-usage.md )
8125
26+ [ Example PWR Apps] ( ./docs/pwr-apps.md )
8227
28+ [ Script WRAPS Guide] ( ./docs/script-wraps.md )
0 commit comments