You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+42-1Lines changed: 42 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,45 @@
2
2
[Nexus](https://github.com/jaracil/nexus/) command line tool. Wrapper of the golang [Nexus client](https://github.com/jaracil/nxcli)
3
3
4
4
## Install
5
-
go get github.com/nayarsystems/nxctl
5
+
go get github.com/nayarsystems/nxctl
6
+
7
+
## Config file
8
+
9
+
The config is read using [Viper](https://github.com/spf13/viper), so it supports JSON, TOML, YAML, HCL, or Java properties formats, from any of these paths:
10
+
11
+
* ./
12
+
* $HOME/.nxctl/
13
+
* $HOME/.config/nxctl/
14
+
* $HOME/.local/config/nxctl/
15
+
* /etc/nxctl/
16
+
* %APPDATA%/nxctl/
17
+
18
+
--
19
+
20
+
$ cat /home/user/.config/nxctl/default.yml
21
+
user: defaultuser
22
+
password: secretpass
23
+
server: wss://nexus.local
24
+
timeout: 120
25
+
26
+
$ cat /home/user/.config/nxctl/production.json
27
+
{
28
+
"user" : "root"
29
+
"password" : "%%verysecretpass%%",
30
+
"server" : "wss://nexus.remote.com",
31
+
}
32
+
33
+
34
+
Config files can be selected by passing the -c flag, using the filename (without extension):
35
+
36
+
$ ./nxctl shell
37
+
2016/08/12 08:21:08 Connected to wss://nexus.local
38
+
2016/08/12 08:21:47 Logged as defaultuser
39
+
...
40
+
41
+
$ ./nxctl -c production shell
42
+
2016/08/12 08:21:08 Connected to wss://nexus.remote.com
0 commit comments