This commit is contained in:
parent
7c129cc81b
commit
d8495dc878
1 changed files with 23 additions and 0 deletions
23
README.md
23
README.md
|
@ -13,3 +13,26 @@ It has 4 standard entry points, defined in `pyproject.toml`:
|
|||
|
||||
It has a Forgejo CI build action, defined in `.forgejo/actions/build.yaml`.
|
||||
|
||||
## Usage
|
||||
|
||||
```fish
|
||||
set NAME knoc_foo
|
||||
set DNAME (echo $NAME | tr "_" "-")
|
||||
```
|
||||
|
||||
or with bash:
|
||||
```bash
|
||||
NAME=knoc_foo
|
||||
DNAME=$(echo $NAME | tr "_" "-")
|
||||
```
|
||||
|
||||
Then:
|
||||
```fish
|
||||
git clone https://code.philo.ydns.eu/K-Net/knoc-plugin-template.git $NAME
|
||||
cd $NAME
|
||||
rm -rf .git
|
||||
mv src/knoc_plugin_template src/$NAME
|
||||
sed "s/knoc_plugin_template/$NAME/" -i pyproject.toml
|
||||
sed "s/knoc-plugin-template/$DNAME/" -i pyproject.toml
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue