Documentação - 🇧🇷 Português
DevPilot é um gerador de CLIs que permite criar, abrir e gerenciar CLIs de forma simples, com suporte a comandos personalizados e plugins.
- Criar novos CLIs automaticamente (
createCLI
). - Adicionar comandos aos CLIs existentes.
- Flags globais:
-
--help
para exibir instruções. -
--version
para ver a versão do DevPilot. -
--doc
para exibir documentação
-
- Build automático para cada CLI criado.
- Clone este repositório:
git clone https://github.com/LucasPaulo001/DevPilot.git
- Vá para a branch de desenvolvimento
git checkout feature-devp/configs
- Na raiz do projeto instale as dependências
npm install
- Gere a dist para melhores testes (O projeto buildado é a melhor opção para testes diretos do terminal)
npm run build
- Agora é só rodar o index da dist com o comando
npm start
- Rode o projeto direto da dist utilizando o node com as flags
Para ajuda
node dist/cli/index.js --help
Para verificar a versão do DevPilot
node dist/cli/index.js --v
ou
node dist/cli/index.js --version
Para ter acesso à documentação
node dist/cli/index.js --doc
- Baixe o DevPilot globalmente
npm install devpilot-core -g
- Agora inicialize o devpilot e crie o projeto base para o seu CLI
devpilot
- Ajuda
devpilot --help
- Documentação
devpilot --doc
- Versão
devpilot --version
Ao gerar um CLI teremos vários arquivos:
meu-cli
- ├── src/
- | ├── dist/
- │ ├── cli/
- │ │ └── index.ts
- │ ├── commands/
- │ │ ├── hello.ts
- │ │ ├── ping.ts
- | └── devpilot.config.yaml
- ├── package.json
- └── tsconfig.json
index.ts é o ponto de partida para a criação da interface de comandos do CLI.
É nele que vamos criar o questionário principal para os comandos.A pasta commands é onde ficarão nossos comandos, ou seja, onde fica a automação que vamos construir para o CLI.
Funcionalidade | Descrição |
---|---|
Criação de Flags |
Agora o usuário pode gerar flags de formasimples, apenas pelo menu interativo! |
Campo de ajuda do Devpilot |
Janela de ajuda com visual novo |
Melhorias de inicialização do CLI |
Dependências baixadas juntamente com build do CLI gerado sem necessidade de instalação de dependência extra |
Documentation - 🇺🇸 English
Table of Contents
DevPilot is a CLI generator that allows you to create, open, and manage CLIs easily, with support for custom commands and plugins.
- Automatically create new CLIs (
createCLI
). - Add commands to existing CLIs.
- Global flags:
-
--help
to display instructions. -
--version
to check the DevPilot version. -
--doc
to display documentation.
-
- Automatic build for each created CLI.
- Clone this repository:
git clone https://github.com/LucasPaulo001/DevPilot.git
- Switch to the development branch
git checkout feature-devp/configs
- In the project root, install dependencies
npm install
- Build the project for better testing (built version is the best option for direct terminal tests)
npm run build
- Now just run the index in the dist folder with:
npm start
- Run the project directly from dist using Node with the flags:
For help
node dist/cli/index.js --help
To check DevPilot version
node dist/cli/index.js --v
or
node dist/cli/index.js --version
To access documentation
node dist/cli/index.js --doc
- Install DevPilot globally
npm install devpilot-core -g
- Initialize DevPilot and create the base project for your CLI
devpilot
- Help
devpilot --help
- Documentation
devpilot --doc
- Version
devpilot --version
When generating a CLI, the following files will be created:
my-cli
- ├── src/
- | ├── dist/
- │ ├── cli/
- │ │ └── index.ts
- │ ├── commands/
- │ │ ├── hello.ts
- │ │ ├── ping.ts
- | └── devpilot.config.yaml
- ├── package.json
- └── tsconfig.json
index.ts is the entry point for creating the CLI command interface. This is where we will build the main questionnaire for commands.
The commands folder is where our commands will reside, meaning the automation we will build for the CLI.
Feature | Description |
---|---|
Flag Creation |
Users can now generate flags easily through the interactive menu! |
DevPilot Help Section |
Updated help window with a new look |
CLI Initialization Improvements |
Dependencies are installed together with the CLI build, no extra installation needed |