Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalSSH
Commits
50c7814b
Commit
50c7814b
authored
Feb 28, 2019
by
Lukas Burgey
Browse files
Change cmdline display
Closes
#6
parent
8f291ae1
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.go
View file @
50c7814b
...
...
@@ -159,7 +159,7 @@ func uploadPubKey() (state api.DepState) {
func
findServiceID
()
(
serviceID
int
)
{
serviceBytes
,
err
:=
restCall
(
"GET"
,
"services"
,
nil
)
if
err
!=
nil
{
log
.
Fatal
(
"Retrieving services: %s"
,
err
)
log
.
Fatal
f
(
"Retrieving services: %s"
,
err
)
}
var
services
=
[]
api
.
Service
{}
json
.
Unmarshal
(
serviceBytes
,
&
services
)
...
...
@@ -254,7 +254,7 @@ func sshConnect(creds api.Credentials) {
cmd
.
Stdout
=
os
.
Stdout
err
=
cmd
.
Run
()
}
else
{
log
.
Printf
(
"D
one. SSH
using:
'
ssh -i %s %s@%s'"
,
*
pubKey
,
sshUser
,
sshHost
)
fmt
.
Printf
(
"D
eployment successful. You can now ssh to the service
using:
\n
ssh -i %s %s@%s'"
,
*
pubKey
,
sshUser
,
sshHost
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment