Skip to content

wxn0brP/suglite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Suglite

Suglite is a simple tool for watching file changes and automatically restarting processes.

Installation

Run the following command:

ingr suglite

OR

yarn global add github:wxn0brP/suglite

OR

bun add -g github:wxn0brP/suglite

This downloads the suglite script and makes it executable.

Usage

Run with the default command:

suglite

Run with a custom command:

suglite -c node server.js

Use a predefined configuration: (e.g. for python)

suglite -p py

See suglite --help for more options.

Interactive Commands

While suglite is running, you can type:

Command Description
rs manual restart
quit exit the program
help list available commands
config show current configuration
cls clear the console
$<command> execute a shell command (eg $yarn add)
$!<command> execute a shell command with pretty logging
<event> execute a custom command from events
<!event> execute a custom command from events without pretty logging

Global Configuration

Global configuration is stored in:

  • Linux: ~/.config/suglite/config.json.
  • Windows: %APPDATA%\suglite\config.json.

VSC Lint

"json.schemas": [
    {
        "fileMatch": [
            "suglite.json"
        ],
        "url": "https://raw.githubusercontent.com/wxn0brP/suglite/refs/heads/master/schema.json"
    }
],
"json5.schemas": [
    {
        "fileMatch": [
            "suglite.json5"
        ],
        "url": "https://raw.githubusercontent.com/wxn0brP/suglite/refs/heads/master/schema.json"
    },
],

About

Suglite – a lightweight process watcher with automatic restarts, built for efficiency and control. [tool]

Topics

Resources

License

Stars

Watchers

Forks

Contributors