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

Alternative implementation of a magic framework. #45

Merged
merged 4 commits into from
Nov 9, 2021

Conversation

mariuszlitwin
Copy link
Collaborator

  • docstring_parser for extracting argument description.

  • determine type using annotations instead of docstring.

  • deprecation of --bindto argument; Picatrix magic expect line
    argument to be in a following format:

    {bind_variable} -- {magic_arguments}

    e.g. %example var -- 1 2 3 --a=1 will run an example magic with
    positional paramters set to 1, 2 and 3 and keyword argument a
    set to 1. Results will be saved to var variable.

This PR addresses #22 and #20, but isn't yet merged into rest of the framework.
I am going to fit it to the rest of the codebase in follow-up PRs.

mariuszlitwin and others added 2 commits October 30, 2021 01:34
* docstring_parser for extracting argument description.
* determine type using annotations instead of docstring.
* deprecation of --bindto argument; Picatrix magic expect `line`
  argument to be in a following format:

  `{bind_variable} -- {magic_arguments}`

  e.g. `%example var -- 1 2 3 --a=1` will run an `example` magic with
  positional paramters set to `1`, `2` and `3` and keyword argument `a`
  set to `1`. Results will be saved to `var` variable.
@obsidianforensics obsidianforensics self-assigned this Nov 8, 2021
@mariuszlitwin mariuszlitwin merged commit 290a67d into google:main Nov 9, 2021
@mariuszlitwin mariuszlitwin deleted the magics branch November 9, 2021 18:09
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.

2 participants