-
Notifications
You must be signed in to change notification settings - Fork 15
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
(Request) Adding ZTI Commands #125
Comments
I think that what is described for this issue is a good idea. I'll call that an informal way to run scripts. There is currently a formal way that is not yet documented. Put something like this in your [project.entry-points."zti.commands"]
myfunc = "mymodule:myfunc" The target function ( There are ways other than |
Okay. I've done a bit of research into this. I won't have time to take a crack at it until the holidays. Here's my basic idea for a design: The default path for user macros will be something like When the These files will be expected to each contain a function with the same name which can accept two arguments, a
For each Python file in the user macros directory, Anyways once the |
So I've got some code written up for this, but I have as of yet been unable to build it successfully. I don't see any specific build instructions, so I'm using the command
Any guidance on how to build this successfully would be helpful. Once I can build and test it successfully I will probably add an example under the examples directory. |
@john-craig, you may be over-thinking this. If your current working directory is your cloned tnz repo, you should just be able to |
It would be nice if there were a way to add user-defined commands or macros to ZTI.
For example, a directory somewhere that a user can just drop-in a Python file, like
myfunc.py
, and then have that Python script invoked when a user runs themyfunc
command in the ZTI REPL.The text was updated successfully, but these errors were encountered: