Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require not working? #122

Closed
jupegarnica opened this issue Nov 1, 2022 · 3 comments
Closed

Require not working? #122

jupegarnica opened this issue Nov 1, 2022 · 3 comments

Comments

@jupegarnica
Copy link

I am not sure if i am doing something wrong, but i can not run any binary in vhs context.

Here a simple example:

❯ vhs --version
vhs version v0.1.1 (b023c66)

❯ cat demo.tape 
   1   │ Output ./demo.gif
   2   │ 
   3   │ Require deno
   4   │ 
   5   │ Type "deno --version" Enter

❯ vhs < demo.tape 
  3 │ Require deno
      ^^^^^^^ Invalid command: Require

  3 │ Require deno
              ^^^^ Invalid command: deno

Error: parse error
Usage:
  vhs <file> [flags]
  vhs [command]

Available Commands:
  help        Help about any command
  new         Create a new tape file with example tape file contents and documentation
  serve       Start the VHS SSH server
  validate    Validate a glob file path and parses all the files to ensure they are valid without running them.

Flags:
  -h, --help      help for vhs
  -v, --version   version for vhs

Use "vhs [command] --help" for more information about a command.

parse error
@jolheiser
Copy link
Contributor

The Require command isn't available quite yet until a new release is cut.

If you want to use it before then you'll need to build from source.

@maaslalani
Copy link
Member

maaslalani commented Nov 1, 2022

As @jolheiser mentioned, we recently introduced the Require command, you would need to build from source to access the feature until the next version of VHS.

I would recommend deleting that line for now if you don't want to build from source.

@jupegarnica
Copy link
Author

Understood.

Btw, lovely project :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants