-
Notifications
You must be signed in to change notification settings - Fork 28
Command Line Interface
Falcon Wong edited this page Oct 30, 2018
·
2 revisions
Wow, now Seneca comes with a terminal command line interface. What do?
Note: This is a toy interface that prefaces the real one. Please be patient while we develop the rest of the application!
Simply install the Python package and it comes with the CLI.
$ pip3 install senecaCreate a file in your favorite IDE or text editor ending with the extension <file_name>.sen.py
@export
def my_public_api_function():
print("Use me.")
def my_private_function():
print("Don't touch me!")$ seneca -r <file_name>.sen.py
Author and sender are optional. This will be changed in the future by requiring login or equivalent mechanism.
$ seneca -p <file_name>.sen.py -n <name_of_contract> \
--author <your_name> --sender <your_name>
$ seneca -d <name_of_contract>