feat(cli): add command to show qr code (#2518)

* refactor cli, add commands

* add docs

* improve

* fix ec mode order
This commit is contained in:
Bernd Storath
2026-03-05 11:53:27 +01:00
committed by GitHub
parent 47f81dd66a
commit 5228734c98
10 changed files with 292 additions and 94 deletions
+3 -1
View File
@@ -9,7 +9,9 @@ type Options = {
enableIpv6?: boolean;
};
const wgExecutable = WG_ENV.WG_EXECUTABLE;
// needed to support cli
const wgExecutable =
typeof WG_ENV !== 'undefined' ? WG_ENV.WG_EXECUTABLE : 'dev';
export const wg = {
generateServerPeer: (