yousoff92 / my-cli

Sample base project to create your own command line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

my-cli

Introduction

You can create your custom CLI using this program structure.

Prequisite

This program tested ok by using this version :

  • npm 6.7.0
  • node v11.14.0

Getting Started

  1. Install in your local
npm install -g
  1. Modify constant.js (if any)
  2. Then you can now use my command in your terminal.
  3. Try execute my -h for available commands.

Adding new commands

  1. Follow this structure :
  • components
    • module_name_1
      • module_name_1.js
    • module_name_2
      • module_name_2.js
  1. The module_name_1.js structure must follow base.ftl

or you can just run my add-component <component_name>

About

Sample base project to create your own command line


Languages

Language:JavaScript 90.3%Language:FreeMarker 9.7%