Skip to content

Commit b588a73

Browse files
committed
docs: misc
1 parent 418cff4 commit b588a73

File tree

3 files changed

+139
-0
lines changed

3 files changed

+139
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# [inflated-goboscript.github.io](https://inflated-goboscript.github.io/)
22
gh pages using material for mkdocs
33

4+
5+
## credits
6+
7+
banner image is partially from https://scratch.mit.edu/projects/317901726/remixtree/

docs/inflator/other commands.md

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
# other commands
2+
3+
This is a section that should be split into more details subsections
4+
5+
### [documentation](https://inflated-goboscript.github.io/inflator/)
6+
### [pypi](https://pypi.org/project/inflator/)
7+
8+
Inflator will try to behave like the old [backpack](https://github.com/aspizu/backpack) version when dealing
9+
with `goboscript.toml`.
10+
In the future, it will probably not support the current backpack version/syntax.
11+
12+
If you want to integrate your project with inflator, add an `inflator.toml` file to your project.
13+
This is the file that inflator will look at for config and dependencies.
14+
15+
### Installing packages/gobos
16+
17+
Inflator uses a loosely [pip](https://github.com/pypa/pip) inspired syntax.
18+
19+
The command for installing packages is `inflate install`
20+
21+
- For installing a local package:
22+
- Ensure an `inflator.toml` file is provided (see below)
23+
- cd to inside your package, to the same level as `inflator.toml`
24+
- run `inflate install .`
25+
26+
> [!NOTE]
27+
> You can find public gobos at https://github.com/topics/inflated-goboscript
28+
29+
- For installing GitHub packages
30+
- run `inflate install <link to github repository>`
31+
- Optionally supply a version (tag name):<br>
32+
`inflate install <link to github repository> -V <version>`
33+
34+
- For local package development
35+
- You can install an 'editable' package using the `-e` flag.
36+
- `inflate install -e .`
37+
- This will store a symlink in your appdata instead of copying the folder, which means that changes to the original
38+
package will take effect instantly. This is like how `pip installe -e .` behaves
39+
40+
Inflator will avoid installing packages which have already been installed (same username, reponame and version).
41+
To override this, use the `-U` flag.
42+
43+
> [!NOTE]
44+
> If you are a package developer using inflator, you can upload your gobos to GitHub.
45+
> Remember to provide `inflator.toml`.
46+
> Please also add the `inflated-goboscript` tag to your repository
47+
48+
### Syncing packages/gobos
49+
50+
!!! Note "Inflator.toml syntax:"
51+
52+
```toml
53+
# These 3 are used for local installating of a package.
54+
# They are only needed if you are making your own package.
55+
# `username` is only needed to keep locally installed packages linked to a specific user.
56+
# But it is recommended to always include your username here
57+
name = "<name of your package, e.g. 'projectenv'>"
58+
version = "<version string, e.g. v0.0.0>"
59+
username = "<Your username, e.g. FAReTek1>"
60+
61+
[dependencies]
62+
# This is used by any project that has dependencies
63+
# Use a package by relative path
64+
vec2 = "../vec2"
65+
66+
# use an existing installed package
67+
# WARNING: This will NOT work with inflate install!
68+
# This assumes that you have already INSTALLED a package named `quat`
69+
# e.g. from GitHub, or locally
70+
quat = "quat"
71+
72+
# Use a GitHub repository
73+
geo2d = "https://github.com/FAReTek1/geo2d"
74+
75+
# Use a GitHub repository with a version.
76+
# Version numbers also work with globbing
77+
geo2d_v7 = ["https://github.com/FAReTek1/geo2d", "v*.*.7"]
78+
79+
# Use an INSTALLED package with a version
80+
# These version nums can also be globbed
81+
penv-inf = ["projectenv-inflated", "v0.0.2"]
82+
83+
# Use an INSTALLED package with a version and specify a username
84+
penv-inf = ["projectenv-inflated", "v0.0.2", "faretek1"]
85+
```
86+
87+
If you are creating a package, do not include dependencies which rely on something already being installed
88+
(because inflator will try to evaluate them when trying to install your package, and will not be able to find their
89+
source)
90+
91+
92+
To sync packages:
93+
> [!NOTE]
94+
> If you are on windows, you will need permissions to create symlinks
95+
96+
1. cd to your goboscript project
97+
2. run `inflate`
98+
3. if you want to do this without cding, do `inflate -i <dir>`
99+
4. pkgs will end up in `inflate/` or `backpack/` as symlinks
100+
101+
### Other commands
102+
#### inflate find
103+
This lists out all packages that fit the specified name, username, or version
104+
105+
Syntax:
106+
`inflate find [reponame] -U [username] -V [version]`
107+
108+
Globbing is allowed
109+
You can omit all fields to list out all installed gobos.
110+
111+
#### inflate parse
112+
This prints out what inflator makes of a `goboscript.toml` or `inflator.toml` file.
113+
Used for development, but you can use it too.
114+
115+
Syntax:
116+
`inflate parse [filepath]`
117+
118+
#### inflate toml
119+
This auto generates an `inflator.toml` file for you.
120+
Recommended to run with `goboscript new <args>`
121+
Make sure you set your username or else
122+
123+
#### inflate -V
124+
Prints out the inflate version
125+
126+
#### inflate -L
127+
Prints out the path to the log folder
128+
129+
### development installation
130+
131+
1. clone the GitHub repository
132+
2. cd to the repo directory
133+
3. do `pip install -e .`
134+
4. you can use inflate using `inflate <args>`

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,4 @@ nav:
130130
- Usage:
131131
- Getting Started: inflator/usage/getting started.md
132132
- Installing Packages: inflator/usage/installing packages.md
133+
- Other commands: inflator/other commands.md

0 commit comments

Comments
 (0)