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

Improve the ".env" REPL command #16

Open
YamiDaisuke opened this issue May 14, 2021 · 0 comments
Open

Improve the ".env" REPL command #16

YamiDaisuke opened this issue May 14, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@YamiDaisuke
Copy link
Owner

The REPL supports "commands" in the form of .<command-name> structure, one of the first commands added was env which will print the values store in the current execution environment including inner and outer values.

The current output is not so friendly, particularly for arrays and objects the output can be better. For example:

>>> .env
{
  d: (type: let, value: [100, {"foo" : "bar"}]),
  a: (type: let, value: 100),
  z: (type: let, value: {"env" : "[100, {"foo" : "bar"}]"}),
  b: (type: let, value: {"foo" : "bar"}),
  outer: nil
}

Could be something similar to:

{
  d: (
    type: let, 
    value: [
      100, 
      {
        "foo" : "bar"
      }
    ]
  )
  .....
}
@YamiDaisuke YamiDaisuke added the enhancement New feature or request label May 14, 2021
@YamiDaisuke YamiDaisuke self-assigned this May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant