]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tools/peertube.ts
Add ability to forbid followers
[github/Chocobozzz/PeerTube.git] / server / tools / peertube.ts
index 7441161b1506d58763315c8d75a092c7cd216cde..5d3ab2815db44f1534415fc262849749917322c3 100755 (executable)
@@ -7,7 +7,7 @@ import {
 } from './cli'
 
 program
-  .version(version(), '-v, --version')
+  .version(version, '-v, --version')
   .usage('[command] [options]')
 
 /* Subcommands automatically loaded in the directory and beginning by peertube-* */
@@ -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 */
 program
@@ -57,12 +58,12 @@ if (!process.argv.slice(2).length) {
             ,"\\/
       _,.__/"\\/_                     (the CLI for red chocobos)
      / \\) "./,  ".
-  --/---"---" "-) )---- by Chocobozzz et al.`)
+  --/---"---" "-) )---- by Chocobozzz et al.\n`)
 }
 
 getSettings()
   .then(settings => {
-    const state = (settings.default === -1) ?
+    const state = (settings.default === undefined || settings.default === -1) ?
       'no instance selected, commands will require explicit arguments' :
       ('instance ' + settings.remotes[settings.default] + ' selected')
     program