UNPKG

745 BJavaScriptView Raw
1#!/usr/bin/env node
2
3/* eslint-disable quotes */
4
5'use strict';
6
7const program = require('commander');
8
9program
10 .name('fun nas')
11 .description('Operate your remote NAS file system locally.')
12 .command('info', 'Print nas config information, such as local temp directory of NAS.')
13 .command('init', 'For each service with NAS config, create local NAS folder and deploy fun nas server service.')
14 .command('sync', 'Synchronize the local NAS directory with the remote NAS file system.')
15 .command('ls', 'List contents of remote NAS directory')
16 .command('rm', 'Remove remote NAS file.')
17 .command('cp', 'copy local file/folder to remote NAS');
18
19require('../lib/utils/command').registerCommandChecker(program);
20
21program.parse(process.argv);