Skip to content

layers-digital/layers-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Layers Command Line Interface

Parallel project to simplify Layers's repos first usage

Now using golang

To Install

  • NVM
    • install versions: 8, 12, 14
    • NVM_DIR is set
  • Layers
    • LAYERS_PATH is set to the root of Layers's directory

About Go project

  • To run in your own machine you must have golang installed
  • This project is using Cobra to build the CLI
  • With golang installed, use go run main.go to run the cli
  • If you want to build, use this command go build in the root. It will generate layers_cli file, which could be initialized via terminal
  • If you want to create a new command, you must install CobraGenerator. With CobraGenerator installed, use the command cobra add <commandName> in the root.

How to install?

  • run bash ./install.sh --build in the root to build and install
  • OBS: At this moment you need to install golang to build

Tasks

  • Commands: status of each command
    • Doctor
      • check mongodb
      • check redis
      • check file
      • check required directories
      • use knowledge package
    • Ecosystem
      • Run
        • Run ecosystem for current project
      • Monitor
        • Open pm2's terminal monitor
      • Setup
        • get project's required directories
        • get needs for the project ecosystem
        • setup needs
        • run setup scripts for each directory
        • get interpreters
          • node
            • from nvm
            • from asdf
        • generate .config.js file
      • Stop
        • Stop current ecosystem
  • configuration file (LAYERS.md): a file to specify the project's configuration;
  • automatic installation;
    • publish binary
    • install script