Skip to content

Commit 3217d77

Browse files
authored
Develop (#71)
* update * update * update * update. go 1.17.2対応 * update. copyright * update.. * update pkcs11 * update pkcs11 * update security * update v0.6.4 * update README.md
1 parent 6bd03e1 commit 3217d77

File tree

248 files changed

+8851
-7005
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+8851
-7005
lines changed

README.md

Lines changed: 84 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -74,49 +74,48 @@ run command.
7474

7575
option(lssh)
7676

77-
NAME:
78-
lssh - TUI list select and parallel ssh client command.
79-
USAGE:
80-
lssh [options] [commands...]
81-
82-
OPTIONS:
83-
--host servername, -H servername connect servername.
84-
--file filepath, -F filepath config filepath. (default: "~/.lssh.conf")
85-
-L [bind_address:]port:remote_address:port Local port forward mode.Specify a [bind_address:]port:remote_address:port. Only single connection works.
86-
-R [bind_address:]port:remote_address:port Remote port forward mode.Specify a [bind_address:]port:remote_address:port. Only single connection works.
87-
-D port Dynamic port forward mode(Socks5). Specify a port. Only single connection works.
88-
-w Displays the server header when in command execution mode.
89-
-W Not displays the server header when in command execution mode.
90-
--not-execute, -N not execute remote command and shell.
91-
--x11, -X x11 forwarding(forward to ${DISPLAY}).
92-
--term, -t run specified command at terminal.
93-
--parallel, -p run command parallel node(tail -F etc...).
94-
--localrc use local bashrc shell.
95-
--not-localrc not use local bashrc shell.
96-
--pshell, -s use parallel-shell(pshell) (alpha).
97-
--list, -l print server list from config.
98-
--help, -h print this help
99-
--version, -v print the version
100-
101-
COPYRIGHT:
102-
103-
104-
VERSION:
105-
0.6.2
106-
107-
USAGE:
108-
# connect ssh
109-
lssh
110-
111-
# run command selected server over ssh.
112-
lssh command...
113-
114-
# run command parallel in selected server over ssh.
115-
lssh -p command...
116-
117-
# run command parallel in selected server over ssh, do it in interactively shell.
118-
lssh -s
119-
77+
NAME:
78+
lssh - TUI list select and parallel ssh client command.
79+
USAGE:
80+
lssh [options] [commands...]
81+
82+
OPTIONS:
83+
--host servername, -H servername connect servername.
84+
--file filepath, -F filepath config filepath. (default: "/Users/uesugi/.lssh.conf")
85+
-L [bind_address:]port:remote_address:port Local port forward mode.Specify a [bind_address:]port:remote_address:port. Only single connection works.
86+
-R [bind_address:]port:remote_address:port Remote port forward mode.Specify a [bind_address:]port:remote_address:port. Only single connection works.
87+
-D port Dynamic port forward mode(Socks5). Specify a port. Only single connection works.
88+
-w Displays the server header when in command execution mode.
89+
-W Not displays the server header when in command execution mode.
90+
--not-execute, -N not execute remote command and shell.
91+
--x11, -X x11 forwarding(forward to ${DISPLAY}).
92+
--term, -t run specified command at terminal.
93+
--parallel, -p run command parallel node(tail -F etc...).
94+
--localrc use local bashrc shell.
95+
--not-localrc not use local bashrc shell.
96+
--pshell, -s use parallel-shell(pshell) (alpha).
97+
--list, -l print server list from config.
98+
--help, -h print this help
99+
--version, -v print the version
100+
101+
COPYRIGHT:
102+
103+
104+
VERSION:
105+
0.6.4
106+
107+
USAGE:
108+
# connect ssh
109+
lssh
110+
111+
# run command selected server over ssh.
112+
lssh command...
113+
114+
# run command parallel in selected server over ssh.
115+
lssh -p command...
116+
117+
# run command parallel in selected server over ssh, do it in interactively shell.
118+
lssh -s
120119

121120

122121
### lscp
@@ -127,35 +126,34 @@ run command.
127126

128127
option(lscp)
129128

130-
NAME:
131-
lscp - TUI list select and parallel scp client command.
132-
USAGE:
133-
lscp [options] (local|remote):from_path... (local|remote):to_path
134-
135-
OPTIONS:
136-
--host value, -H value connect servernames
137-
--list, -l print server list from config
138-
--file value, -F value config file path (default: "~/.lssh.conf")
139-
--permission, -p copy file permission
140-
--help, -h print this help
141-
--version, -v print the version
129+
NAME:
130+
lscp - TUI list select and parallel scp client command.
131+
USAGE:
132+
lscp [options] (local|remote):from_path... (local|remote):to_path
142133

143-
COPYRIGHT:
144-
134+
OPTIONS:
135+
--host value, -H value connect servernames
136+
--list, -l print server list from config
137+
--file value, -F value config file path (default: "/Users/uesugi/.lssh.conf")
138+
--permission, -p copy file permission
139+
--help, -h print this help
140+
--version, -v print the version
145141

146-
VERSION:
147-
0.6.2
142+
COPYRIGHT:
143+
148144

149-
USAGE:
150-
# local to remote scp
151-
lscp /path/to/local... remote:/path/to/remote
145+
VERSION:
146+
0.6.4
152147

153-
# remote to local scp
154-
lscp remote:/path/to/remote... /path/to/local
148+
USAGE:
149+
# local to remote scp
150+
lscp /path/to/local... remote:/path/to/remote
155151

156-
# remote to remote scp
157-
lscp remote:/path/to/remote... remote:/path/to/local
152+
# remote to local scp
153+
lscp remote:/path/to/remote... /path/to/local
158154

155+
# remote to remote scp
156+
lscp remote:/path/to/remote... remote:/path/to/local
159157

160158

161159
### lsftp
@@ -166,27 +164,25 @@ run command.
166164

167165
option(lsftp)
168166

169-
NAME:
170-
lsftp - TUI list select and parallel sftp client command.
171-
USAGE:
172-
lsftp [options]
173-
174-
OPTIONS:
175-
--file value, -F value config file path (default: "~/.lssh.conf")
176-
--help, -h print this help
177-
--version, -v print the version
178-
179-
COPYRIGHT:
180-
167+
NAME:
168+
lsftp - TUI list select and parallel sftp client command.
169+
USAGE:
170+
lsftp [options]
181171

182-
VERSION:
183-
0.6.2
172+
OPTIONS:
173+
--file value, -F value config file path (default: "/Users/uesugi/.lssh.conf")
174+
--help, -h print this help
175+
--version, -v print the version
184176

185-
USAGE:
186-
# start lsftp shell
187-
lsftp
177+
COPYRIGHT:
178+
188179

180+
VERSION:
181+
0.6.4
189182

183+
USAGE:
184+
# start lsftp shell
185+
lsftp
190186

191187

192188
If you specify a command as an argument, you can select multiple hosts. Select host <kbd>Tab</kbd>, select all displayed hosts <kbd>Ctrl</kbd> + <kbd>a</kbd>.
@@ -377,7 +373,7 @@ You can select multiple connection destinations.
377373
</details>
378374

379375

380-
### 5. include ~/.ssh/config file.
376+
### 6. include ~/.ssh/config file.
381377
<details>
382378

383379
Load and use `~/.ssh/config` by default.\
@@ -392,7 +388,7 @@ Alternatively, you can specify and read the path as follows: In addition to the
392388

393389
</details>
394390

395-
### 6. include other ServerConfig file.
391+
### 7. include other ServerConfig file.
396392
<details>
397393

398394
You can include server settings in another file.\
@@ -434,7 +430,7 @@ The priority of setting values ​​is as follows.
434430

435431
</details>
436432

437-
### 7. Supported Proxy
433+
### 8. Supported Proxy
438434
<details>
439435

440436
Supports multiple proxy.
@@ -505,7 +501,7 @@ Besides this, you can also specify ProxyCommand like OpenSSH.
505501
</details>
506502

507503

508-
### 8. Available authentication method
504+
### 9. Available authentication method
509505
<details>
510506

511507
* Password auth
@@ -587,7 +583,7 @@ Besides this, you can also specify ProxyCommand like OpenSSH.
587583
</details>
588584

589585

590-
### 9. Port forwarding
586+
### 10. Port forwarding
591587
<details>
592588

593589
Supported Local/Remote/Dynamic port forwarding.\

cmd/lscp/args.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019 Blacknon. All rights reserved.
1+
// Copyright (c) 2021 Blacknon. All rights reserved.
22
// Use of this source code is governed by an MIT license
33
// that can be found in the LICENSE file.
44

@@ -60,7 +60,7 @@ USAGE:
6060
app.Name = "lscp"
6161
app.Usage = "TUI list select and parallel scp client command."
6262
app.Copyright = "blacknon([email protected])"
63-
app.Version = "0.6.2"
63+
app.Version = "0.6.4"
6464

6565
// options
6666
// TODO(blacknon): オプションの追加(0.7.0)

cmd/lscp/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019 Blacknon. All rights reserved.
1+
// Copyright (c) 2021 Blacknon. All rights reserved.
22
// Use of this source code is governed by an MIT license
33
// that can be found in the LICENSE file.
44

cmd/lsftp/args.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019 Blacknon. All rights reserved.
1+
// Copyright (c) 2021 Blacknon. All rights reserved.
22
// Use of this source code is governed by an MIT license
33
// that can be found in the LICENSE file.
44

@@ -51,7 +51,7 @@ USAGE:
5151
app.Name = "lsftp"
5252
app.Usage = "TUI list select and parallel sftp client command."
5353
app.Copyright = "blacknon([email protected])"
54-
app.Version = "0.6.2"
54+
app.Version = "0.6.4"
5555

5656
app.Flags = []cli.Flag{
5757
cli.StringFlag{Name: "file,F", Value: defConf, Usage: "config file path"},

cmd/lsftp/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019 Blacknon. All rights reserved.
1+
// Copyright (c) 2021 Blacknon. All rights reserved.
22
// Use of this source code is governed by an MIT license
33
// that can be found in the LICENSE file.
44

cmd/lssh/args.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019 Blacknon. All rights reserved.
1+
// Copyright (c) 2021 Blacknon. All rights reserved.
22
// Use of this source code is governed by an MIT license
33
// that can be found in the LICENSE file.
44

@@ -65,7 +65,7 @@ USAGE:
6565
app.Name = "lssh"
6666
app.Usage = "TUI list select and parallel ssh client command."
6767
app.Copyright = "blacknon([email protected])"
68-
app.Version = "0.6.2"
68+
app.Version = "0.6.4"
6969

7070
// TODO(blacknon): オプションの追加
7171
// -f ... バックグラウンドでの接続(X11接続やport forwardingをバックグラウンドで実行する場合など)。

cmd/lssh/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019 Blacknon. All rights reserved.
1+
// Copyright (c) 2021 Blacknon. All rights reserved.
22
// Use of this source code is governed by an MIT license
33
// that can be found in the LICENSE file.
44

common/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019 Blacknon. All rights reserved.
1+
// Copyright (c) 2021 Blacknon. All rights reserved.
22
// Use of this source code is governed by an MIT license
33
// that can be found in the LICENSE file.
44

common/common_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019 Blacknon. All rights reserved.
1+
// Copyright (c) 2021 Blacknon. All rights reserved.
22
// Use of this source code is governed by an MIT license
33
// that can be found in the LICENSE file.
44

conf/conf.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019 Blacknon. All rights reserved.
1+
// Copyright (c) 2021 Blacknon. All rights reserved.
22
// Use of this source code is governed by an MIT license
33
// that can be found in the LICENSE file.
44

@@ -44,6 +44,9 @@ type LogConfig struct {
4444

4545
// Specifies the directory for creating terminal logs.
4646
Dir string `toml:"dirpath"`
47+
48+
// Logging with remove ANSI code.
49+
RemoveAnsiCode bool `toml:"remove_ansi_code"`
4750
}
4851

4952
// ShellConfig Structure for storing lssh-shell settings.

0 commit comments

Comments
 (0)