-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,17 @@ Because all parameters are passed to the TailwindCSS executable, twshim itself i | |
* `TWROOT` is the directory for downloaded TailwindCSS executables, e.g. `$HOME/.twshim/downloads`. | ||
|
||
twshim uses `runtime.GOOS` and `runtime.GOARCH` to decide which executable to download. | ||
|
||
## Usage | ||
|
||
You can use `go run` to invoke twshim if you want to quickly execute a specific version of TailwindCSS CLI. | ||
|
||
```shell | ||
TWTAG=v3.2.4 TWROOT=$HOME/.twshim/downloads go run github.com/ngrash/twshim/cmd/[email protected] | ||
``` | ||
|
||
You can also use `go get` to add twshim to your application and use the `twshim` package from your code. | ||
|
||
```shell | ||
go get github.com/ngrash/[email protected] | ||
``` |