Skip to content

Shadlock0133/cargo-vibe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

cargo install cargo-vibe

Running

cargo vibe build

Configuration

Vibe Pattern

By default, cargo-vibe will, on success, vibe full strength for 3 seconds.

You can change that by setting CARGO_VIBE_PATTERN environment variable. For example, to set it vibe for 1.5 second on 20% strength, you can do:

CARGO_VIBE_PATTERN="0.2 1.5s" cargo vibe <cmd>

You can also set full patterns of vibes to run, by separating them with slashes /. Here is one example:

CARGO_VIBE_PATTERN="0.4 1s/0.6 1s/0.8 0.75s/1.0 0.25s"

Server Address

If your server is running at an address or port other than the default (ws://127.0.0.1:12345), you can override it using CARGO_VIBE_ADDR. For example:

CARGO_VIBE_ADDR="ws://172.31.160.1:69696"