Skip to content

Commit bea175b

Browse files
committed
cleanup
1 parent baf115c commit bea175b

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

main.go

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
Copyright (C) 2025 Michael Ablassmeier <abi@grinser.de>
3+
4+
This program is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU General Public License as published by
6+
the Free Software Foundation, either version 3 of the License, or
7+
(at your option) any later version.
8+
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
117
package main
218

319
import (
@@ -27,7 +43,7 @@ var (
2743
)
2844

2945
func main() {
30-
46+
InfoPrint("%s: %s %s %s ", os.Args[0], version, commit, date)
3147
bindAddress := flag.String("bind", "127.0.0.1:2222", "bind address, 127.0.0.1:2222, use :2222 for all")
3248
flag.Parse()
3349

@@ -133,14 +149,13 @@ func dockerRun(cfg *container.Config, hostcfg *container.HostConfig, sess ssh.Se
133149
cleanup = func() {}
134150
ctx := context.Background()
135151

136-
InfoPrint("Image: %s", sess.User())
137152
cImage := sess.User()
153+
InfoPrint("Image: %s", cImage)
138154

139155
networkingConfig := network.NetworkingConfig{}
140156
platformConfig := v1.Platform{
141157
OS: "linux",
142158
Architecture: "amd64",
143-
// Variant: "minimal",
144159
}
145160
if imageExistsLocally(ctx, cImage, docker) != true {
146161
sess.Write([]byte("Image [" + cImage + "] not found, attempting to fetch from repository ..\n"))

0 commit comments

Comments
 (0)