Skip to content

Commit e149f74

Browse files
authored
chore: remove yargonaut (#827)
1 parent 1c53482 commit e149f74

File tree

5 files changed

+13
-116
lines changed

5 files changed

+13
-116
lines changed

docs/reference.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -178,21 +178,20 @@ DESCRIPTION
178178
NOTE: For Node.js Actors, customize behavior by modifying the 'start' script in package.json file.
179179

180180
USAGE
181-
$ apify run [--entrypoint <value>] [-i <value> | --input-file <value>] [-p] [--purge-dataset] [--purge-key-value-store] [--purge-queue]
181+
$ apify run [--entrypoint <value>] [-i <value> | --input-file <value>] [-p | --resurrect]
182182

183183
FLAGS
184-
--entrypoint=<value> Optional entrypoint for running with injected environment variables.
185-
For Python, it is the module name, or a path to a file.
186-
For node.js, it is the npm script name, or a path to a JS/MJS file. You can also pass in a directory name, provided that
187-
directory contains an "index.js" file.
188-
-i, --input=<value> Optional JSON input to be given to the Actor.
189-
--input-file=<value> Optional path to a file with JSON input to be given to the Actor. The file must be a valid JSON
190-
file. You can also specify `-` to read from standard input.
191-
-p, --purge Shortcut that combines the --purge-queue, --purge-dataset and --purge-key-value-store options.
192-
--purge-dataset Deletes the local directory containing the default dataset before the run starts.
193-
--purge-key-value-store Deletes all records from the default key-value store in the local directory before the run starts,
194-
except for the "INPUT" key.
195-
--purge-queue Deletes the local directory containing the default request queue before the run starts.
184+
--entrypoint=<value> Optional entrypoint for running with injected environment variables.
185+
For Python, it is the module name, or a path to a file.
186+
For Node.js, it is the npm script name, or a path to a JS/MJS file. You can also pass in a directory name, provided that
187+
directory contains an "index.js" file.
188+
-i, --input=<value> Optional JSON input to be given to the Actor.
189+
--input-file=<value> Optional path to a file with JSON input to be given to the Actor. The file must be a valid JSON file.
190+
You can also specify `-` to read from standard input.
191+
-p, --purge Whether to purge the default request queue, dataset and key-value store before the run starts.
192+
For crawlee projects, this is the default behavior, and the flag is optional.
193+
Use `--no-purge` to keep the storage folder intact.
194+
--resurrect Whether to keep the default request queue, dataset and key-value store before the run starts.
196195
```
197196
198197
##### `apify validate-schema`

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
"which": "^5.0.0",
107107
"widest-line": "^5.0.0",
108108
"wrap-ansi": "^9.0.0",
109-
"yargonaut": "^1.1.4",
110109
"yargs": "^17.7.2"
111110
},
112111
"devDependencies": {

src/entrypoints/_shared.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import process from 'node:process';
22

33
import chalk from 'chalk';
4-
import yargonaut from 'yargonaut';
54
// eslint-disable-next-line import/extensions
65
import yargs from 'yargs/yargs';
76

@@ -21,12 +20,6 @@ import { cliDebugPrint } from '../lib/utils/cliDebugPrint.js';
2120

2221
export const cachedStdinInput = await readStdin();
2322

24-
yargonaut //
25-
.style('blue')
26-
.style('yellow', 'required')
27-
.helpStyle('green')
28-
.errorsStyle('red');
29-
3023
export const cli = yargs()
3124
.version(false)
3225
.help(false)

src/lib/yargonaut.d.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

yarn.lock

Lines changed: 1 addition & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -2342,13 +2342,6 @@ __metadata:
23422342
languageName: node
23432343
linkType: hard
23442344

2345-
"ansi-regex@npm:^2.0.0":
2346-
version: 2.1.1
2347-
resolution: "ansi-regex@npm:2.1.1"
2348-
checksum: 10c0/78cebaf50bce2cb96341a7230adf28d804611da3ce6bf338efa7b72f06cc6ff648e29f80cd95e582617ba58d5fdbec38abfeed3500a98bce8381a9daec7c548b
2349-
languageName: node
2350-
linkType: hard
2351-
23522345
"ansi-regex@npm:^4.1.0":
23532346
version: 4.1.1
23542347
resolution: "ansi-regex@npm:4.1.1"
@@ -2370,13 +2363,6 @@ __metadata:
23702363
languageName: node
23712364
linkType: hard
23722365

2373-
"ansi-styles@npm:^2.2.1":
2374-
version: 2.2.1
2375-
resolution: "ansi-styles@npm:2.2.1"
2376-
checksum: 10c0/7c68aed4f1857389e7a12f85537ea5b40d832656babbf511cc7ecd9efc52889b9c3e5653a71a6aade783c3c5e0aa223ad4ff8e83c27ac8a666514e6c79068cab
2377-
languageName: node
2378-
linkType: hard
2379-
23802366
"ansi-styles@npm:^4.0.0, ansi-styles@npm:^4.1.0":
23812367
version: 4.3.0
23822368
resolution: "ansi-styles@npm:4.3.0"
@@ -2484,7 +2470,6 @@ __metadata:
24842470
which: "npm:^5.0.0"
24852471
widest-line: "npm:^5.0.0"
24862472
wrap-ansi: "npm:^9.0.0"
2487-
yargonaut: "npm:^1.1.4"
24882473
yargs: "npm:^17.7.2"
24892474
bin:
24902475
actor: ./dist/entrypoints/actor.js
@@ -3072,19 +3057,6 @@ __metadata:
30723057
languageName: node
30733058
linkType: hard
30743059

3075-
"chalk@npm:^1.1.1":
3076-
version: 1.1.3
3077-
resolution: "chalk@npm:1.1.3"
3078-
dependencies:
3079-
ansi-styles: "npm:^2.2.1"
3080-
escape-string-regexp: "npm:^1.0.2"
3081-
has-ansi: "npm:^2.0.0"
3082-
strip-ansi: "npm:^3.0.0"
3083-
supports-color: "npm:^2.0.0"
3084-
checksum: 10c0/28c3e399ec286bb3a7111fd4225ebedb0d7b813aef38a37bca7c498d032459c265ef43404201d5fbb8d888d29090899c95335b4c0cda13e8b126ff15c541cef8
3085-
languageName: node
3086-
linkType: hard
3087-
30883060
"chalk@npm:^4.0.0, chalk@npm:^4.1.2":
30893061
version: 4.1.2
30903062
resolution: "chalk@npm:4.1.2"
@@ -4157,7 +4129,7 @@ __metadata:
41574129
languageName: node
41584130
linkType: hard
41594131

4160-
"escape-string-regexp@npm:^1.0.2, escape-string-regexp@npm:^1.0.5":
4132+
"escape-string-regexp@npm:^1.0.5":
41614133
version: 1.0.5
41624134
resolution: "escape-string-regexp@npm:1.0.5"
41634135
checksum: 10c0/a968ad453dd0c2724e14a4f20e177aaf32bb384ab41b674a8454afe9a41c5e6fe8903323e0a1052f56289d04bd600f81278edf140b0fcc02f5cac98d0f5b5371
@@ -4607,15 +4579,6 @@ __metadata:
46074579
languageName: node
46084580
linkType: hard
46094581

4610-
"figlet@npm:^1.1.1":
4611-
version: 1.8.1
4612-
resolution: "figlet@npm:1.8.1"
4613-
bin:
4614-
figlet: bin/index.js
4615-
checksum: 10c0/20a9023ee316b2cbbeb9ba94c9adfdb9fc1bd150efec0ddd3492c23a03e3311ac77fb1a65cfa14e3bf4eca250ddcf98ca380871222cb9909bd50071b3602e8da
4616-
languageName: node
4617-
linkType: hard
4618-
46194582
"figures@npm:^3.2.0":
46204583
version: 3.2.0
46214584
resolution: "figures@npm:3.2.0"
@@ -5212,15 +5175,6 @@ __metadata:
52125175
languageName: node
52135176
linkType: hard
52145177

5215-
"has-ansi@npm:^2.0.0":
5216-
version: 2.0.0
5217-
resolution: "has-ansi@npm:2.0.0"
5218-
dependencies:
5219-
ansi-regex: "npm:^2.0.0"
5220-
checksum: 10c0/f54e4887b9f8f3c4bfefd649c48825b3c093987c92c27880ee9898539e6f01aed261e82e73153c3f920fde0db5bf6ebd58deb498ed1debabcb4bc40113ccdf05
5221-
languageName: node
5222-
linkType: hard
5223-
52245178
"has-ansi@npm:^4.0.1":
52255179
version: 4.0.1
52265180
resolution: "has-ansi@npm:4.0.1"
@@ -7357,13 +7311,6 @@ __metadata:
73577311
languageName: node
73587312
linkType: hard
73597313

7360-
"parent-require@npm:^1.0.0":
7361-
version: 1.0.0
7362-
resolution: "parent-require@npm:1.0.0"
7363-
checksum: 10c0/58eb17553192027a596bb3b13f567e4933894964ad47a9f9054a5dc4776e60e13903e937b2eec6e7afff8a34a4fc91b5397fdc6206aa2d50ba95b87059b4f2e0
7364-
languageName: node
7365-
linkType: hard
7366-
73677314
"parse-json@npm:^8.0.0":
73687315
version: 8.3.0
73697316
resolution: "parse-json@npm:8.3.0"
@@ -8713,15 +8660,6 @@ __metadata:
87138660
languageName: node
87148661
linkType: hard
87158662

8716-
"strip-ansi@npm:^3.0.0":
8717-
version: 3.0.1
8718-
resolution: "strip-ansi@npm:3.0.1"
8719-
dependencies:
8720-
ansi-regex: "npm:^2.0.0"
8721-
checksum: 10c0/f6e7fbe8e700105dccf7102eae20e4f03477537c74b286fd22cfc970f139002ed6f0d9c10d0e21aa9ed9245e0fa3c9275930e8795c5b947da136e4ecb644a70f
8722-
languageName: node
8723-
linkType: hard
8724-
87258663
"strip-ansi@npm:^7.0.1, strip-ansi@npm:^7.1.0":
87268664
version: 7.1.0
87278665
resolution: "strip-ansi@npm:7.1.0"
@@ -8780,13 +8718,6 @@ __metadata:
87808718
languageName: node
87818719
linkType: hard
87828720

8783-
"supports-color@npm:^2.0.0":
8784-
version: 2.0.0
8785-
resolution: "supports-color@npm:2.0.0"
8786-
checksum: 10c0/570e0b63be36cccdd25186350a6cb2eaad332a95ff162fa06d9499982315f2fe4217e69dd98e862fbcd9c81eaff300a825a1fe7bf5cc752e5b84dfed042b0dda
8787-
languageName: node
8788-
linkType: hard
8789-
87908721
"supports-color@npm:^7.1.0":
87918722
version: 7.2.0
87928723
resolution: "supports-color@npm:7.2.0"
@@ -9825,17 +9756,6 @@ __metadata:
98259756
languageName: node
98269757
linkType: hard
98279758

9828-
"yargonaut@npm:^1.1.4":
9829-
version: 1.1.4
9830-
resolution: "yargonaut@npm:1.1.4"
9831-
dependencies:
9832-
chalk: "npm:^1.1.1"
9833-
figlet: "npm:^1.1.1"
9834-
parent-require: "npm:^1.0.0"
9835-
checksum: 10c0/3d9ece55799075ae7e39b3b0c3aa043aa648cf3326bff9c3fca8d49ad4ffe314a444a8afbd74983132d6b8bc95c3967a6456da078c45599ce4a6f4219d64727f
9836-
languageName: node
9837-
linkType: hard
9838-
98399759
"yargs-parser@npm:^21.1.1":
98409760
version: 21.1.1
98419761
resolution: "yargs-parser@npm:21.1.1"

0 commit comments

Comments
 (0)