Skip to main content

Neulabs cli

Project description


id: index title: Neucli

Neulabs CLI

The neulabs CLI is used to aggregate all those activities and commands useful to various developers, reducing development costs and creating shared standards. The goal of neucli is to facilitate the generation and use of standard components such as documentation structure, GitHub actions for releases, and more.

Neucli is based on Taskfile, a task runner that allows the creation of modular CLIs through YAML configurations. Each command has its own structure, some of them are Python modules, while others are simple Bash scripts. This approach makes it easy to add additional modules in various programming languages, and you can also create your own custom commands locally and add them to the CLI.

Installation

Requirements

  • Python >= 3.8 [install]
  • Nodjs >= 16.14 [install]
  • Homebrew (only on MacOS)

Steps

  1. Donwload taskfiles/cli/cli.yml from neulabs-cli repository
  2. Install task command
    • [ Linux ] npm install -g @go-task/cli
    • [ MacOS ] brew install go-task
  3. Install neucli:
    task --taskfile cli.yml installer
    task --taskfile cli.yml deps:all
    
  4. Delete cli.yml and restart terminal
  5. Run neucli help

Getting started

Help command

neucli help

Summary command

neucli summary -- command

Pass args to command

neucli command -- -opt-1 value --opt-2 -x --zyx

Own cli commands

  • In the file ~/.neulabs-cli/Taskfile.local.yml you can add your own commands as desired.
  • Then you can use your command with neucli local:command-name

Dev mode

Setup git clone https://github.com/neulabscom/neulabs-cli.git && cd neulabs-cli git submodule update --init --recursive

./bin/neucli dev:setup:installer

source .activate
neucli cli:deps:all

Test neucli commands

source .activate
neucli --debug dev:utils:lint

Test installer with debug mode

neucli --debug cli:installer

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neucli-0.2.6.tar.gz (20.5 kB view details)

Uploaded Source

File details

Details for the file neucli-0.2.6.tar.gz.

File metadata

  • Download URL: neucli-0.2.6.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for neucli-0.2.6.tar.gz
Algorithm Hash digest
SHA256 0a968efe9da7f0ed6ff5706bffa748161c7dd3f2df655f995ce5f943a787601e
MD5 ec84aa8746dc0e910d52e6aaa8507cc6
BLAKE2b-256 912061b6bd2d88ff3df8e6bf267b0c4f8bd01b45334a17beb81d0f7f1c58423e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page