Skip to content

Commit 48d6c6a

Browse files
rm \r in outputs
1 parent 02e8763 commit 48d6c6a

1 file changed

Lines changed: 80 additions & 85 deletions

File tree

nbs/reference/00_cli.ipynb

Lines changed: 80 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,6 @@
1010
"> An overview of the Plash CLI commands"
1111
]
1212
},
13-
{
14-
"cell_type": "code",
15-
"execution_count": null,
16-
"id": "89996de5",
17-
"metadata": {},
18-
"outputs": [],
19-
"source": [
20-
"#| hide\n",
21-
"from plash_cli._bash_magic import *"
22-
]
23-
},
2413
{
2514
"cell_type": "markdown",
2615
"id": "897236fc",
@@ -39,13 +28,12 @@
3928
"name": "stdout",
4029
"output_type": "stream",
4130
"text": [
42-
"usage: plash_login [-h]\r\n",
43-
"\r\n",
44-
"Authenticate CLI with server and save config\r\n",
45-
"\r\n",
46-
"options:\r\n",
47-
" -h, --help show this help message and exit\r\n",
48-
"\n"
31+
"usage: plash_login [-h]\n",
32+
"\n",
33+
"Authenticate CLI with server and save config\n",
34+
"\n",
35+
"options:\n",
36+
" -h, --help show this help message and exit\n"
4937
]
5038
}
5139
],
@@ -72,13 +60,12 @@
7260
"name": "stdout",
7361
"output_type": "stream",
7462
"text": [
75-
"usage: plash_apps [-h]\r\n",
76-
"\r\n",
77-
"List your deployed apps (1=running, 0=stopped)\r\n",
78-
"\r\n",
79-
"options:\r\n",
80-
" -h, --help show this help message and exit\r\n",
81-
"\n"
63+
"usage: plash_apps [-h]\n",
64+
"\n",
65+
"List your deployed apps (1=running, 0=stopped)\n",
66+
"\n",
67+
"options:\n",
68+
" -h, --help show this help message and exit\n"
8269
]
8370
}
8471
],
@@ -105,15 +92,14 @@
10592
"name": "stdout",
10693
"output_type": "stream",
10794
"text": [
108-
"usage: plash_deploy [-h] [--path PATH] [--app_id APP_ID]\r\n",
109-
"\r\n",
110-
"Ship your app to production\r\n",
111-
"\r\n",
112-
"options:\r\n",
113-
" -h, --help show this help message and exit\r\n",
114-
" --path PATH Path to project (default: .)\r\n",
115-
" --app_id APP_ID Overrides the .plash file in project root if provided\r\n",
116-
"\n"
95+
"usage: plash_deploy [-h] [--path PATH] [--app_id APP_ID]\n",
96+
"\n",
97+
"Ship your app to production\n",
98+
"\n",
99+
"options:\n",
100+
" -h, --help show this help message and exit\n",
101+
" --path PATH Path to project (default: .)\n",
102+
" --app_id APP_ID Overrides the .plash file in project root if provided\n"
117103
]
118104
}
119105
],
@@ -140,15 +126,14 @@
140126
"name": "stdout",
141127
"output_type": "stream",
142128
"text": [
143-
"usage: plash_view [-h] [--path PATH] [--app_id APP_ID]\r\n",
144-
"\r\n",
145-
"Open your app in the browser\r\n",
146-
"\r\n",
147-
"options:\r\n",
148-
" -h, --help show this help message and exit\r\n",
149-
" --path PATH Path to project directory (default: .)\r\n",
150-
" --app_id APP_ID Overrides the .plash file in project root if provided\r\n",
151-
"\n"
129+
"usage: plash_view [-h] [--path PATH] [--app_id APP_ID]\n",
130+
"\n",
131+
"Open your app in the browser\n",
132+
"\n",
133+
"options:\n",
134+
" -h, --help show this help message and exit\n",
135+
" --path PATH Path to project directory (default: .)\n",
136+
" --app_id APP_ID Overrides the .plash file in project root if provided\n"
152137
]
153138
}
154139
],
@@ -175,15 +160,14 @@
175160
"name": "stdout",
176161
"output_type": "stream",
177162
"text": [
178-
"usage: plash_start [-h] [--path PATH] [--app_id APP_ID]\r\n",
179-
"\r\n",
180-
"Access the '/start' endpoint for your app\r\n",
181-
"\r\n",
182-
"options:\r\n",
183-
" -h, --help show this help message and exit\r\n",
184-
" --path PATH Path to project (default: .)\r\n",
185-
" --app_id APP_ID Overrides the .plash file in project root if provided\r\n",
186-
"\n"
163+
"usage: plash_start [-h] [--path PATH] [--app_id APP_ID]\n",
164+
"\n",
165+
"Access the '/start' endpoint for your app\n",
166+
"\n",
167+
"options:\n",
168+
" -h, --help show this help message and exit\n",
169+
" --path PATH Path to project (default: .)\n",
170+
" --app_id APP_ID Overrides the .plash file in project root if provided\n"
187171
]
188172
}
189173
],
@@ -210,15 +194,14 @@
210194
"name": "stdout",
211195
"output_type": "stream",
212196
"text": [
213-
"usage: plash_stop [-h] [--path PATH] [--app_id APP_ID]\r\n",
214-
"\r\n",
215-
"Access the '/stop' endpoint for your app\r\n",
216-
"\r\n",
217-
"options:\r\n",
218-
" -h, --help show this help message and exit\r\n",
219-
" --path PATH Path to project (default: .)\r\n",
220-
" --app_id APP_ID Overrides the .plash file in project root if provided\r\n",
221-
"\n"
197+
"usage: plash_stop [-h] [--path PATH] [--app_id APP_ID]\n",
198+
"\n",
199+
"Access the '/stop' endpoint for your app\n",
200+
"\n",
201+
"options:\n",
202+
" -h, --help show this help message and exit\n",
203+
" --path PATH Path to project (default: .)\n",
204+
" --app_id APP_ID Overrides the .plash file in project root if provided\n"
222205
]
223206
}
224207
],
@@ -245,18 +228,16 @@
245228
"name": "stdout",
246229
"output_type": "stream",
247230
"text": [
248-
"usage: plash_logs [-h] [--path PATH] [--app_id APP_ID] [--mode {build,app}]\r\n",
249-
" [--tail]\r\n",
250-
"\r\n",
251-
"Prints the logs for your deployed app\r\n",
252-
"\r\n",
253-
"options:\r\n",
254-
" -h, --help show this help message and exit\r\n",
255-
" --path PATH Path to project (default: .)\r\n",
256-
" --app_id APP_ID Overrides the .plash file in project root if provided\r\n",
257-
" --mode {build,app} Choose between build or app logs (default: build)\r\n",
258-
" --tail Tail the logs (default: False)\r\n",
259-
"\n"
231+
"usage: plash_logs [-h] [--path PATH] [--app_id APP_ID] [--mode {build,app}] [--tail]\n",
232+
"\n",
233+
"Prints the logs for your deployed app\n",
234+
"\n",
235+
"options:\n",
236+
" -h, --help show this help message and exit\n",
237+
" --path PATH Path to project (default: .)\n",
238+
" --app_id APP_ID Overrides the .plash file in project root if provided\n",
239+
" --mode {build,app} Choose between build or app logs (default: build)\n",
240+
" --tail Tail the logs (default: False)\n"
260241
]
261242
}
262243
],
@@ -283,17 +264,15 @@
283264
"name": "stdout",
284265
"output_type": "stream",
285266
"text": [
286-
"usage: plash_download [-h] [--path PATH] [--app_id APP_ID]\r\n",
287-
" [--save_path SAVE_PATH]\r\n",
288-
"\r\n",
289-
"Download your deployed app\r\n",
290-
"\r\n",
291-
"options:\r\n",
292-
" -h, --help show this help message and exit\r\n",
293-
" --path PATH Path to project (default: .)\r\n",
294-
" --app_id APP_ID Overrides the .plash file in project root if provided\r\n",
295-
" --save_path SAVE_PATH Save path (optional) (default: download)\r\n",
296-
"\n"
267+
"usage: plash_download [-h] [--path PATH] [--app_id APP_ID] [--save_path SAVE_PATH]\n",
268+
"\n",
269+
"Download your deployed app\n",
270+
"\n",
271+
"options:\n",
272+
" -h, --help show this help message and exit\n",
273+
" --path PATH Path to project (default: .)\n",
274+
" --app_id APP_ID Overrides the .plash file in project root if provided\n",
275+
" --save_path SAVE_PATH Save path (optional) (default: download)\n"
297276
]
298277
}
299278
],
@@ -315,7 +294,23 @@
315294
"execution_count": null,
316295
"id": "0c3663fa",
317296
"metadata": {},
318-
"outputs": [],
297+
"outputs": [
298+
{
299+
"name": "stdout",
300+
"output_type": "stream",
301+
"text": [
302+
"usage: plash_delete [-h] [--path PATH] [--app_id APP_ID] [--force]\n",
303+
"\n",
304+
"Delete your deployed app\n",
305+
"\n",
306+
"options:\n",
307+
" -h, --help show this help message and exit\n",
308+
" --path PATH Path to project (default: .)\n",
309+
" --app_id APP_ID Overrides the .plash file in project root if provided\n",
310+
" --force Skip confirmation prompt (default: False)\n"
311+
]
312+
}
313+
],
319314
"source": [
320315
"%%bash\n",
321316
"plash_delete --help"

0 commit comments

Comments
 (0)