eletrize

command module
v0.0.0-...-62588c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 20 Imported by: 0

README

Eletrize

Live reload for Golang and others

Go Report Card

Install

With go 1.23 or higher:

go install github.com/lasfh/eletrize@latest

Run simple command

$ eletrize run ./server "go build" --ext=.go --label="API" --env=.env

Run command

Detect files with names: eletrize.yml, eletrize.yaml, .eletrize.yml, .eletrize.yaml, eletrize.json, .eletrize.json and .eletrize (JSON format)'.

$ eletrize eletrize.yml

Run with specific schema

$ eletrize eletrize.yml --schema=NUMBER (>= 1)

Example configuration file

schema:
  - label: SCHEMA NAME
    workdir: ""
    envs:
      key: "value"
    env_file: ".env"
    watcher:
      path: "."
      recursive: true
      excluded_paths:
        - "frontend"
      extensions:
        - ".go"
        - ".js"
    commands:
      build:
        method: "go"
        args:
          - "build"
        envs:
          key: "value"
        env_file: ""
      run:
        - label: WORKER
          method: "./worker"
          envs:
            key: "value"
          env_file: ""

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL