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

Update 0.7 #24

Merged
merged 39 commits into from
Sep 20, 2023
Merged

Update 0.7 #24

merged 39 commits into from
Sep 20, 2023

Conversation

glcraft
Copy link
Owner

@glcraft glcraft commented Sep 20, 2023

Improvements

From #20 : Caching dependencies in the workflow

Build workflow is speed up by a lot thanks to caching crates.io dependencies, thus save compilation time.

From #21 : Run code blocks

Ask for execute code from block if the language is specified after the three backticks.

Supported languages:

  • unix shells
  • powershell
  • nushell
  • python
  • rust (compile then run)

Flag added :

  • -r, --run <RUN>: Run code block if the language is supported
    Possible values:
    • no: Doesn't run anything
    • ask: Ask to run code
    • force: Run code without asking
      default to no

From #23 : Replace lazy_static to once_cell crate

New engine from-file

Using this new engine, you can read file and interpret it like it comes from AI. Useful for debugging or testing.

Example:

aio -e from-file ./test.md

@glcraft glcraft merged commit cacfe21 into main Sep 20, 2023
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

Successfully merging this pull request may close these issues.

Migrate from lazy static to once_cell Be able to execute code in code blocks
1 participant