updated docs

modified:   Docs.md
This commit is contained in:
OusmBlueNinja 2023-08-26 22:02:03 -05:00
parent b4bf74ab45
commit cb4d531edc

33
Docs.md
View File

@ -2,6 +2,13 @@
## Installing a package
1. download package source
2. copy `(package).py` file to `./packages/`
3. restart `main.py`
4. run the command `pakk install <package name>`
5. run any command in the package
### the `pakk install` command will pull from internet in a future update
## Creating a package
Once the package is installed, you can use the commands in it, here is how to make one.
@ -17,10 +24,32 @@ then, to write a command, just write a function with the code you want to run, t
```python
#["echo", "package.echo", ["out"]]
# made by OusmBlueNinja
# made by <Your name Here>
#Function name and command must be the same
def out(message):
print(message)
```
From here you can run pretty much anything.
From here you can run pretty much anything.
```python
#["test", "package.test", ["hello"]]
#you can even do classes
class test:
def __init__(self):
self.hello = "World"
def func(self):
print(self.hello)
def hello(args):
del args
test = test()
test.func()
```