ActivityPub-federated video streaming platform using P2P directly in your web browser
add repl to the cli wrapper, remove extraneous TOC in tools.md
Rigel Kentc141f68be141
diff --git a/server/tools/repl.ts b/server/tools/peertube-repl.tssimilarity index 100%rename from server/tools/repl.tsrename to server/tools/peertube-repl.tsdiff --git a/server/tools/peertube.ts b/server/tools/peertube.tsindex ad76bafb40..c8b9fa744d 100755--- a/server/tools/peertube.ts+++ b/server/tools/peertube.ts@@ -17,6 +17,7 @@ program.command('import-videos', 'import a video from a streaming platform').alias('import').command('get-access-token', 'get a peertube access token', { noHelp: true }).alias('token').command('watch', 'watch a video in the terminal ✩°。⋆').alias('w')+ .command('repl', 'initiate a REPL to access internals')/* Not Yet Implemented */programdiff --git a/support/doc/tools.md b/support/doc/tools.mdindex 7f93c94f20..eb3f97eb4f 100644--- a/support/doc/tools.md+++ b/support/doc/tools.md@@ -1,42 +1,31 @@+# CLI tools guide+<!-- START doctoc generated TOC please keep comment here to allow auto update --><!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->-**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*--- [CLI tools guide](#cli-tools-guide)- - [CLI wrapper](#cli-wrapper)- - [Remote Tools](#remote-tools)- - [Dependencies](#dependencies)- - [Installation](#installation)- - [peertube-import-videos.js](#peertube-import-videosjs)- - [peertube-upload.js](#peertube-uploadjs)- - [peertube-watch.js](#peertube-watchjs)- - [Server tools](#server-tools)- - [parse-log](#parse-log)- - [create-transcoding-job.js](#create-transcoding-jobjs)- - [create-import-video-file-job.js](#create-import-video-file-jobjs)- - [prune-storage.js](#prune-storagejs)- - [optimize-old-videos.js](#optimize-old-videosjs)- - [update-host.js](#update-hostjs)- - [REPL (Read Eval Print Loop)](#repl-read-eval-print-loop)- - [.help](#help)- - [Lodash example](#lodash-example)- - [YoutubeDL example](#youtubedl-example)- - [Models examples](#models-examples)+**Table of Contents**++- [CLI wrapper](#cli-wrapper)+- [Remote Tools](#remote-tools)+ - [Dependencies](#dependencies)+ - [Installation](#installation)+ - [peertube-import-videos.js](#peertube-import-videosjs)+ - [peertube-upload.js](#peertube-uploadjs)+ - [peertube-watch.js](#peertube-watchjs)+- [Server tools](#server-tools)+ - [parse-log](#parse-log)+ - [create-transcoding-job.js](#create-transcoding-jobjs)+ - [create-import-video-file-job.js](#create-import-video-file-jobjs)+ - [prune-storage.js](#prune-storagejs)+ - [optimize-old-videos.js](#optimize-old-videosjs)+ - [update-host.js](#update-hostjs)+ - [REPL (Read Eval Print Loop)](#repl-read-eval-print-loop)+ - [.help](#help)+ - [Lodash example](#lodash-example)+ - [YoutubeDL example](#youtubedl-example)+ - [Models examples](#models-examples)<!-- END doctoc generated TOC please keep comment here to allow auto update -->-# CLI tools guide- - [CLI wrapper](#cli-wrapper)- - [Remote tools](#remote-tools)- - [peertube-import-videos.js](#peertube-import-videosjs)- - [peertube-upload.js](#peertube-uploadjs)- - [peertube-watch.js](#peertube-watch)- - [Server tools](#server-tools)- - [parse-log](#parse-log)- - [create-transcoding-job.js](#create-transcoding-jobjs)- - [create-import-video-file-job.js](#create-import-video-file-jobjs)- - [prune-storage.js](#prune-storagejs)-## CLI wrapperThe wrapper provides a convenient interface to most scripts, and requires the [same dependencies](#dependencies). You can access it as `peertube` via an alias in your `.bashrc` like `alias peertube="node ${PEERTUBE_PATH}/dist/server/tools/peertube.js"`:@@ -55,6 +44,7 @@ The wrapper provides a convenient interface to most scripts, and requires the [supload|up upload a videoimport-videos|import import a video from a streaming platformwatch|w watch a video in the terminal ✩°。⋆+ repl initiate a REPL to access internalshelp [cmd] display help for [cmd]```