1
0
Fork 0
Commit graph

17 commits

Author SHA1 Message Date
Chocobozzz
3d3bb23816
Update CLI dependencies 2020-04-02 14:09:33 +02:00
Chocobozzz
ded739eb38
Fix CLI tools typings 2020-04-01 17:04:12 +02:00
Chocobozzz
a15871560f
Move to eslint 2020-02-03 08:31:02 +01:00
Chocobozzz
2f1756a03c
Optimize peertube script 2020-01-28 14:30:10 +01:00
Chocobozzz
26fcf2efeb Add redundancy CLI 2020-01-28 11:35:26 +01:00
Frank de Lange
bda3b70537 peertube-import-videos.ts: add --tmpdir, --first, --last and --verbose [level] parameters (#2045)
* peertube-import-videos.ts: add --tmpdir <tmpdir> parameter, used to designate working directory for downloading and converting imported videos

* peertube-import-videos.ts: add --first and --last parameters to limit processing of the returned playlist to the first/last N elements

* peertube-import-videos.ts: add --verbose [verbosity] parameter, set this from 0 (only errors are reported) to 4 (for trace debugging), default is 2 (info). When --verbose is used without the optional parameter the logging level is set to 3 (debug). At level 1 (warn) it will only report on successfully uploaded videos (and/or errors), use this when running peertube-import-videos in a cron job to mirror a channel.

* package.json: remove dependency on loglevel

cli.ts: add getLogger(loglevel), to be used in CLI tools, add --verbose to set log level

peertube-import-videos: use getLogger (from cli) instead of loglevel, add error_exit (log error and exit), move --verbose to cli.ts, etc.

* cli.ts: remove superfluous reference to default logging level

* peertube-import-videos: exit_error -> exitError
2019-08-26 11:35:28 +02:00
Chocobozzz
6f530096cb
Correctly import tags in CLI 2019-07-29 14:10:31 +02:00
Chocobozzz
8d2be0ed7b WIP plugins: move plugin CLI in peertube script
Install/uninstall/list plugins remotely
2019-07-24 10:58:16 +02:00
Chocobozzz
6b226c3278
Fix CLI default boolean values 2019-06-17 08:16:09 +02:00
Chocobozzz
1205823fec
Add ability to override CLI import attributes 2019-06-13 13:53:28 +02:00
Chocobozzz
1a12f66d63
Add more CLI tests 2019-06-13 11:09:38 +02:00
Chocobozzz
9f167f12aa
Fix netrc tools 2019-06-11 09:25:20 +02:00
Chocobozzz
2b4dd7e26d
Fix optional privacy in upload endpoint 2019-04-25 13:55:28 +02:00
Frank de Lange
8684f3c1f6 Fix #1328 - application-config initialisation in CLI tools (#1343)
Test for an empty object in `cli.ts` when no config data is present (i.e. when run on a new install).
2018-10-24 12:28:25 +02:00
Chocobozzz
499d901595
Fix config endpoint 2018-10-03 14:36:00 +02:00
Rigel Kent
abb2c7927c show last commit hash alongside server version in footer 2018-10-01 14:31:01 +02:00
Rigel Kent
8704acf49e
one cli to unite them all
Ash nazg thrakatulûk agh burzum-ishi krimpatul

- refactor import-videos to use the youtubeDL helper
- add very basic tests for the cli
2018-09-14 11:08:55 +02:00