Skip to content

docs(migration-from-v7): ssh example does not work #1480

@zoren

Description

@zoren

What happened?

The example text says:

// import {ssh} from 'zx' ↓
import {ssh} from 'webpod'

const remote = ssh('user@host')
await remote`echo foo`

but ssh does not take a string parameter.

How it should work?

It should say:

// import {ssh} from 'zx' ↓
import {ssh} from 'webpod'

const remote = ssh({remoteUser: 'user', hostname: 'host'})
await remote`echo foo`

How to reproduce the bug?

Step-by-step instructions to reproduce the behavior. Code snippet, gist or issue-demo repository are helpful

Version

8.8.5

What's OS kind?

No response

What JS runtime is used?

No response

Runtime Version

No response

Error stack / relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions