@@ -16,14 +16,21 @@ const VALID_STATES = new Set([
1616] ) ;
1717
1818function usage ( ) {
19- console . log ( `Usage:
20- ./scripts/lnk [LONG_URL] [SLUG]
21- ./scripts/lnk --splat [LONG_URL_WITH_:splat] [SLUG]
19+ console . log ( `LNK - create and manage VanityURLs links, schedules, and block policies.
20+
21+ Usage:
22+ ./scripts/lnk LONG_URL [SLUG]
23+ ./scripts/lnk --splat LONG_URL_WITH_:splat SLUG
24+
25+ Schedules:
2226 ./scripts/lnk schedule add SLUG TARGET --label LABEL --days mon,tue --from HH:MM --to HH:MM [--timezone TZ]
2327 ./scripts/lnk schedule default SLUG TARGET [--timezone TZ]
2428 ./scripts/lnk schedule list [SLUG]
29+
30+ Block policies:
2531 ./scripts/lnk block categories
2632 ./scripts/lnk block add DOMAIN --category CATEGORY --severity SEVERITY --reason TEXT
33+ ./scripts/lnk block keyword KEYWORD --category CATEGORY --severity SEVERITY --reason TEXT
2734 ./scripts/lnk block allow DOMAIN --reason TEXT
2835
2936Options:
@@ -37,8 +44,22 @@ Options:
3744 --splat Create a splat link; SLUG is stored as SLUG/* in the links file
3845 --help Show this help
3946
40- Nested aliases:
47+ Files:
48+ Links are written to custom/v8s-links.txt when it exists, otherwise defaults/v8s-links.txt.
49+ Schedules are written to custom/v8s-schedules.json.
50+ Block policies are written to custom/v8s-policies.json.
51+
52+ Environment:
53+ DRY_RUN=true Print the planned change without writing, committing, or pushing
54+ LNK_OWNER=OWNER Default owner value for new links
55+ V8S_LINKS_FILE=FILE Override the links file; LNK_FILE is supported as a legacy alias
56+ V8S_SCHEDULES_FILE=FILE
57+ Override the schedule file
58+ V8S_POLICY_FILE=FILE Override the block policy file; BLOCKLIST_FILE is a legacy alias
59+
60+ Notes:
4161 Slugs may contain / to create API-like paths.
62+ Successful write operations commit and push automatically.
4263
4364Examples:
4465 ./scripts/lnk https://github.com/vanityURLs github
@@ -49,7 +70,8 @@ Examples:
4970 ./scripts/lnk schedule add hangout https://zoom.us/j/work --label work --days mon,tue,wed,thu,fri --from 09:00 --to 17:00 --timezone America/Toronto
5071 ./scripts/lnk schedule default hangout https://discord.gg/personal
5172
52- Use DRY_RUN=true to print the line without writing, committing, or pushing.` ) ;
73+ Docs:
74+ https://www.VanityURLs.link/en/docs` ) ;
5375}
5476
5577function resolveLinksFile ( ) {
@@ -237,7 +259,9 @@ function parseGenericArgs(argv) {
237259}
238260
239261function scheduleUsage ( ) {
240- console . log ( `Usage:
262+ console . log ( `LNK schedules - manage time-based targets.
263+
264+ Usage:
241265 ./scripts/lnk schedule add SLUG TARGET --label LABEL --days mon,tue --from HH:MM --to HH:MM [--timezone TZ]
242266 ./scripts/lnk schedule default SLUG TARGET [--timezone TZ]
243267 ./scripts/lnk schedule list [SLUG]
0 commit comments