rld is a tiny tool that runs a go program and watch changes on it.

RLD

rld is a tiny tool that runs a go program and watch changes on it.

rld was inspired by Nodemon

Installation

Clone the git repository and build:

$ git clone https://github.com/codehakase/rld
$ cd rld
$ make release

Or install go binary:

$ cd rld
$ go install github.com/codehakase/rld

Usage

Run rld followed by the file:

$ rld cmd/main.go

Author

Owner
Francis Sunday
Software Engineer, Gopher, Hacker. I use my powers for good!
Francis Sunday
Similar Resources

🤖 DroneCI plugin to skip pipelines based on files changes

DroneCI Skip Pipeline 🤖 DroneCI plugin to skip pipelines based on files changes Motivations This DroneCI plugin enables you skip (or short-circuit) a

Dec 14, 2022

A long-running Go program that watches a Youtube playlist for new videos, and downloads them using yt-dlp or other preferred tool.

ytdlwatch A long-running Go program that watches a Youtube playlist for new videos, and downloads them using yt-dlp or other preferred tool. Ideal for

Jul 25, 2022

A tiny self-contained pasting service with a built-in database.

A tiny self-contained pasting service with a built-in database.

Dec 18, 2021

Go-reconcile - Super tiny go package which does reconcile planning

go-reconcile Super tiny go package which does reconcile planning: taking desired

Mar 1, 2022

k6-to-honeycomb is a program that sends k6 results into Honeycomb for visualization and analysis.

k6-to-honeycomb is a program that sends k6 results into Honeycomb for visualization and analysis.

k6-to-honeycomb k6-to-honeycomb is a program that sends k6 results into Honeycomb for visualization and analysis. Getting Started k6-to-honeycomb is a

Jul 14, 2022

A simple webdev utility program that allows developers to quickly validate and format JSON code

Toolbox CLI A simple webdev utility program that allows developers to quickly validate and format JSON code, convert from UNIX epoch to timestamp and

Jan 4, 2022

Binary program to restart unhealthy Docker containers

DeUnhealth Restart your unhealthy containers safely Features Restart unhealthy containers marked with deunhealth.restart.on.unhealthy=true label Recei

Dec 22, 2022

quick debug program running in the k8s pod

quick debug program running in the k8s pod

quick-debug English | 中文 What Problem To Solve As the k8s becomes more and more popular, most projects are deployed in k8s, and so is the development

Apr 1, 2022

Output all versions of a local git repo, which could be used as test data for your ML program.

gitwalker Output all versions of a local git repo, which could be used as test data for your ML program. Notice This program is under development. Cur

Dec 27, 2021
Comments
  • Fix FSNotify Firing Twice (Kinda) And Kills Process On Restart Or When Rld Exits

    Fix FSNotify Firing Twice (Kinda) And Kills Process On Restart Or When Rld Exits

    What Does This Pull Request Do?

    Fixes A Strange Instance Where FSNotify Send Two Events Even If File Was Modified Once See This Issue, Also Fixes #4 Which Ensures That A Previous Process Has Been Killed Before Starting Another One Or Exiting.

    Where Should The Reviewer Start?

    rld.go Has Multiple Changes Which:

    • Removes An Unused Done Channel (Which I Presume Was For Blocking Till SIGINT Is Received).
    • Adds A Global Process Variable For Monitoring New Spawned Process.
    • Add A Timer Variable For Monitoring Multiple Writes To A File
    • killPid Function For Killing The Current Process Before Starting A New One

    How Should This Be Manually Tested?

    Run The Reloader And Monitor A File Then Proceed To Make Changes To It Using A Text Editor (Or Exit Rld). On File Close, The Previous Process Will Be Killed And A New One Started.

  • Fix FSNotify Firing Twice And Added Killing Of Previous Processes Before Starting A New One Or Exiting.

    Fix FSNotify Firing Twice And Added Killing Of Previous Processes Before Starting A New One Or Exiting.

    What Does This Pull Request Do?

    Fixes A Strange Instance Where FSNotify Send Two Events Even If File Was Modified Once See This Issue, Also Fixes #4 Which Ensures That A Previous Process Has Been Killed Before Starting Another One Or Exiting.

    Where Should The Reviewer Start?

    rld.go Has Multiple Changes Which:

    • Removes An Unused Done Channel (Which I Presume Was Supposed To Block).
    • Adds A Global Process Variable For Monitoring New Spawned Process.
    • Add A Timer Variable For Monitoring Multiple Writes To A File
    • killPid Function For Killing The Current Process Before Starting A New One
    How Should This Be Manually Tested?

    Run The Reloader And Monitor A File Then Proceed To Make Changes To It Using A Text Editor. On File Close, The Previous Process Will Be Killed And A New One Started.

  • Add flag to indicate project root

    Add flag to indicate project root

    Summary

    Add flags to indicate the project root and entry point file to run.

    Problem Definition

    Currently, the rld command only watches for changes on the specified file (os.Args[1]) and not the entire project.

    Proposal

    Add two flags root and entrypoint to indicate the project's root and the file to run the program with:

    $ rld -r ~/Dev/proj -e cmd/proj/main.go
    
Related tags
Watch and react to changes in Kubernetes TLS Secrets

cert-watch Watch and react to change in Kubernetes TLS Secrets. What is cert-watch? Kubernetes has introduced a number of different ways to keep certi

Feb 4, 2022
Tiny Go program to set Elgato Key Light options

Elgato Key Light Controller This is a tiny Go program to control the power, brightness, and temperature settings for Elgato Key Lights with known IP a

Feb 8, 2022
gpupod is a tool to list and watch GPU pod in the kubernetes cluster.

gpupod gpupod is simple tool to list and watch GPU pod in kubernetes cluster. usage Usage: gpupod [flags] Flags: -t, --createdTime with pod c

Dec 8, 2021
Monitoring changes in the source file and automatically compile and run (restart).
Monitoring changes in the source file and automatically compile and run (restart).

dogo Monitoring changes in the source file and automatically compile and run (restart). 中文 Install go get github.com/liudng/dogo Create config Here's

Dec 28, 2022
vcluster - Create fully functional virtual Kubernetes clusters - Each cluster runs inside a Kubernetes namespace and can be started within seconds
vcluster - Create fully functional virtual Kubernetes clusters - Each cluster runs inside a Kubernetes namespace and can be started within seconds

Website • Quickstart • Documentation • Blog • Twitter • Slack vcluster - Virtual Clusters For Kubernetes Lightweight & Low-Overhead - Based on k3s, bu

Jan 4, 2023
GoScanPlayers - Hypixel online player tracker. Runs as an executable and can notify a Discord Webhook
GoScanPlayers - Hypixel online player tracker. Runs as an executable and can notify a Discord Webhook

GoScanPlayers Hypixel online player tracker. Runs as an executable and can notif

Oct 16, 2022
Feels like Cloud Foundry. Runs on Kubernetes.

Migrate Cloud Foundry applications to Kubernetes using Kf As your teams standardize on Kubernetes, migrating applications from existing platforms like

Dec 23, 2022
Opinionated platform that runs on Kubernetes, that takes you from App to URL in one step.
Opinionated platform that runs on Kubernetes, that takes you from App to URL in one step.

Epinio Opinionated platform that runs on Kubernetes, that takes you from App to URL in one step. Contents Epinio Contents What problem does Epinio sol

Nov 13, 2022
Runwasi - A containerd shim which runs wasm workloads in wasmtime

containerd-shim-wasmtime-v1 This is a containerd shim which runs wasm workloads

Dec 28, 2022
Prometheus connection watch exporter

connection watch exporter Exporter of socket connection status for prometheus. The exporter generates labeled metrics with the status of the socket co

Dec 11, 2021