From d81d1478a35086a34743f0d7bcc640e6b6b6d5aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Hedenstr=C3=B6m?= <erik@hedenstroem.com> Date: Sat, 5 Feb 2022 00:43:09 +0100 Subject: [PATCH] First release --- README.md | 12 ++++++++++++ cmd/root.go | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0845390..8973469 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,20 @@ You can download one of the pre-compiled binaries from the list below. - [Windows (32-bit)](http://s3.hedenstroem.com/utils/udm-query/udm-query-windows-i386.exe) - [Windows (64-bit)](http://s3.hedenstroem.com/utils/udm-query/udm-query-windows-x64.exe) +## Configuration + +To avoid providing the password via a flag every time, you can define an environment variable named `SSH_PASSWORD` instead. The address to the UDM can also be set in the environment variable `SSH_ADDRESS`. + +If you prefer you can also set these values in a `.env` file like this: + +```env +SSH_ADDRESS=192.168.1.1 +SSH_PASSWORD=mypassword +``` ## Usage ```bash > udm-query help ``` + +See the [generated documentation]((https://gitlab.hedenstroem.com/go/udm-query/-/blob/main/docs/udm-query.md)) for more information about the various commands. diff --git a/cmd/root.go b/cmd/root.go index 843d77b..ff1dfe8 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -54,7 +54,6 @@ var RootCmd = &cobra.Command{ func Execute() { if err := RootCmd.Execute(); err != nil { - fmt.Println(err) os.Exit(-1) } } -- GitLab