UNPKG

@itkyk/ftp-controller

Version:

## How to use this module. 1. Npm module install ``` $ npm i -D @itkyk/ftp-controller ```

22 lines (16 loc) 532 B
#!/usr/bin/env node import init from "./createEnv"; import {certification} from "./ftpUploader"; const { Command } = require('commander'); const program = new Command(); program .option("-i, --init", "Create template .env file.", false) .option("-d, --deploy [value]", "Upload server.") .option("-l, --list", "When end deploy, puts upload files on console.", false) program.parse(process.argv); const opts = program.opts(); if (opts.init === true) { init(); } else if (opts.deploy) { certification(opts); }