Skip to content

Commit 8897fc0

Browse files
authored
Merge pull request #21 from liquidweb/rename-binary-lw
Rename binary from liquidweb-cli to lw #19
2 parents b4cef40 + 943ed53 commit 8897fc0

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Make sure to check the documentation at http://goreleaser.com
2+
project_name: lw
23
before:
34
hooks:
45
- go mod tidy

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# liquidweb-cli
1+
# lw (liquidweb-cli)
22
Official command line interface for the LiquidWeb API
33
```
44
CLI interface for LiquidWeb.
@@ -19,7 +19,7 @@ As always, consult the various subcommands for specific features and
1919
capabilities.
2020
2121
Usage:
22-
liquidweb-cli [command]
22+
lw [command]
2323
2424
Available Commands:
2525
auth authentication actions
@@ -30,22 +30,22 @@ Available Commands:
3030
3131
Flags:
3232
--config string config file (default is $HOME/.liquidweb-cli.yaml)
33-
-h, --help help for liquidweb-cli
33+
-h, --help help for lw
3434
35-
Use "liquidweb-cli [command] --help" for more information about a command.
35+
Use "lw [command] --help" for more information about a command.
3636
```
3737
## Obtaining prebuilt binaries
3838

3939
Head on over to the [releases page](https://github.com/liquidweb/liquidweb-cli/releases) to get prebuilt binaries for your platform.
4040

4141
## Building from source
4242

43-
You can build liquidweb-cli from source by running `make build` from the root of this repository. The resulting program will be located at `./_exe/liquidweb-cli`.
44-
You can also build+install liquidweb-cli onto your system in the ordinary `go install` way. To do this, either just run `go install` from the root of this repository,
43+
You can build lw from source by running `make build` from the root of this repository. The resulting program will be located at `./_exe/lw`.
44+
You can also build+install lw onto your system in the ordinary `go install` way. To do this, either just run `go install` from the root of this repository,
4545
or `make install`. If you run `make` with no arguments, this will be the default action.
4646

4747
## First Time Setup
48-
The first time you use liquidweb-cli, you will need to setup an auth context. An auth context holds authentication related data for a specific LiquidWeb account. You can follow a guided questionnaire to add your auth contexts if you pass arguments `auth init` to liquidweb-cli. By default contexts are stored in `~/.liquidweb-cli.yaml` or `%APPDATA%/.liquidweb-cli.yaml` on Windows.
48+
The first time you use lw, you will need to setup an auth context. An auth context holds authentication related data for a specific LiquidWeb account. You can follow a guided questionnaire to add your auth contexts if you pass arguments `auth init` to lw. By default contexts are stored in `~/.liquidweb-cli.yaml` or `%APPDATA%/.liquidweb-cli.yaml` on Windows.
4949

5050
## Adding auth contexts later
5151
If you end up wanting to add an auth context later on, you can do so with `auth add-context`. You can find the usage documentation in `help auth add-context`.

scripts/build/dynamic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
source scripts/build/.variables
44
set -e
5-
go build -x --ldflags "${LDFLAGS}" -o _exe/liquidweb-cli github.com/liquidweb/liquidweb-cli
5+
go build -x --ldflags "${LDFLAGS}" -o _exe/lw github.com/liquidweb/liquidweb-cli
66
exit 0

scripts/build/install

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
source scripts/build/.variables
44
set -e
5-
go install -x --ldflags "${LDFLAGS}"
5+
go build -o $GOPATH/bin/lw -x --ldflags "${LDFLAGS}"
66
echo ""
7-
echo "liquidweb-cli has been installed, and it should now be in your PATH."
7+
echo "lw has been installed, and it should now be in your PATH."
88
echo ""
99
echo "Executables are installed in the directory named by the GOBIN environment"
1010
echo "variable, which defaults to GOPATH/bin or HOME/go/bin if the GOPATH"

scripts/build/static

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
source scripts/build/.variables
44
set -e
5-
CGO_ENABLED=0 go build -x -ldflags '-w -extldflags "-static"' --ldflags "${LDFLAGS}" -o _exe/liquidweb-cli github.com/liquidweb/liquidweb-cli
5+
CGO_ENABLED=0 go build -x -ldflags '-w -extldflags "-static"' --ldflags "${LDFLAGS}" -o _exe/lw github.com/liquidweb/liquidweb-cli
66
exit 0

0 commit comments

Comments
 (0)