Skip to content

std::read_file action in runbook does not work / CLI does not recognize it #539

@niko1a4

Description

@niko1a4

I tested the std::read_file action according to the official documentation:

action "test_read" "std::read_file" {
    path = "non_existent_file.json"
}

I expected the CLI to report a file-not-found error, but instead I get:

error: action 'test_read': unknown command 'std::read_file'
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', crates/cli/src/runbook/mod.rs:371:50

I installed Surfpool 1.0.1 from source, and I also installed it via the bash script; got the same error.
I checked Cargo.toml and I don’t see any feature flags that could disable std modules.
Tested on a completely clean runbook.
It seems that std::read_file is not registered as an action, even though the docs show an example using it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions