Skip to content

Commit

Permalink
Fix the example to reflect the new command API
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Feb 4, 2024
1 parent 281f1e8 commit f0aa8fc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/src/examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,10 @@ ssh.userauth_list(session)
@assert ssh.userauth_password(session, "foo") == ssh.AuthStatus_Success

# Now we're authenticated to the server and we can actually do something, like
# running a command:
# running a command (see [Command execution](@ref)):

@assert read(`echo 'Hello world!'`, session, String) == "Hello world!\n"

# What we get back is a tuple of the return code and the output from the
# command.

# Now we can disconnect our client session:

close(session)
Expand Down

0 comments on commit f0aa8fc

Please sign in to comment.