wasmerio / docs.wasmer.io

The Wasmer Docs Website (website deployed using Wasmer Edge)
https://docs.wasmer.io/
MIT License
17 stars 9 forks source link

Error in "How to use packages" on https://wasmer.io/ #15

Closed dazzag24 closed 1 year ago

dazzag24 commented 1 year ago

Following the how to use packages guide:

image

it states:

wasmer run syrusakbary/cowsay hello wasmer

But this does not provide the documented output

❯ wasmer run syrusakbary/cowsay hello wasmer
error: The `cowsay@0.2.0` package doesn't have a default entrypoint, but has multiple available commands:
│   1: You can run any of those by using the --command-name=COMMAND flag
│   2: `cowsay`, `cowthink`
╰─▶ 3:   -> wasmer run cowsay@0.2.0 --command-name=cowsay

The docs need updating to this:

❯ wasmer run syrusakbary/cowsay --command-name=cowsay hello wasmer
 ______________
< hello wasmer >
 --------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
               ||----w |
                ||     ||
dynamite-bud commented 1 year ago

In the new docs that live here. The command is already updated to: wasmer run syrusakbary/cowsay --command=cowthink Hello world.

I think you mistakenly referred to the old docs.

dazzag24 commented 1 year ago

These are the docs currently live at https://wasmer.io/

Click on "How to use packages" in green box.

As a new user this was my obvious starting point.

image