lnbits-legend/lnbits/core
dni ⚡ c8147bd83f
[FEAT] add extension functionality to lnbits-cli (#1963)
* [FEAT] add extension functionality to lnbits-cli

WIP

draft cli commands for vlad :)

* add extension list command

* [feat] lnbits-cli add install, uninstall and upgrade

* feat: load settings from DB

* refactor: simplify settings loading

* feat: show current version if installed

* feat: add mor emessages

* feat: basic DB install

* feat: add extension

* feat: do not install if the server is up

* feat: add logic for uninstall

* refactor: prepare for upgrade

* feat: check extension before upgrade

* refactor: stuff

* fix: have a default value

* feat: use the API logic

* feat: use pi methods for un-install

* refactor: extract _select_release

* feat: add flags

* feat: check if extension already up to date

* refactor: use `_run_async`

* feat: install all extensions

* feat: install online

* fix: api install

* fix: API upgrade & install

* feat: add API uninstall

* failed typo

* typo running

* url duplication

* [fix] provide short-options too (same as upgrade command)

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>

* make black

* fix: fail if .superuser file not found; add `--admin-user` option

* fix: ambiguous use of `logger.debug`

- register_new_ext_routes must not be None
- `logger.debug` was used because it allowed any arguments, but that was a bad idea
- now an explicit empty `_do_nothing(*_)` function is used

* fix: load settings

* doc: updated `--source-repo`

* chore: rename `upgrade` to `update`

* refactor: use `@annotation` for making commands async

* fix: code checks

---------

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2023-10-25 14:03:00 +02:00
..
static fix: emit event for nested lnbits-dynamic-fields components (#2053) 2023-10-20 14:14:10 +03:00
templates add possibility to turn off new registrations (#2017) 2023-10-11 13:46:27 +02:00
views add possibility to turn off new registrations (#2017) 2023-10-11 13:46:27 +02:00
__init__.py [FEAT] Node Managment (#1895) 2023-09-25 15:04:44 +02:00
crud.py [FEAT] add extension functionality to lnbits-cli (#1963) 2023-10-25 14:03:00 +02:00
db.py [REFACTOR] core/__init__ to not have circular import issues (#1876) 2023-09-12 11:25:05 +01:00
helpers.py fix: explicitly specify the DB name when migrating (#2039) 2023-10-17 10:56:38 +02:00
migrations.py [FEAT] Push notification integration into core (#1393) 2023-09-11 14:48:49 +01:00
models.py [FEAT] add extension functionality to lnbits-cli (#1963) 2023-10-25 14:03:00 +02:00
services.py Refactor: Calculate invoice expiry outside of the crud (#1849) 2023-10-10 12:03:24 +02:00
tasks.py [REFACTOR] core/__init__ to not have circular import issues (#1876) 2023-09-12 11:25:05 +01:00