feat: Export flag + minors-adjustements-3 #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "minors-adjustements-3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ajout d'une subcommand export qui permet d'exporter les informations du serveur Vpigo provenant de la db et de la config sous la forme d'une config Wireguard. Une option --output est disponible pour choisir d'avoir l'export dans un fichier au lieu du stdout.
Correctifs et changements mineurs.
@ -51,0 +53,4 @@exportCmd := flag.NewFlagSet("export", flag.ExitOnError)exportCmd.Usage = func() {fmt.Fprintf(w, "Usage : %s export\n\n", os.Args[0])fmt.Fprintf(w, "Export server's information to a Wireguard conf format. However, the server’s private key is not given.\n")C'est pas une apostrophe correcte ici
@ -143,2 +96,4 @@}// ExportToWireguardConf export server's information to a Wireguard conf format.// It uses database and configuration information. However, the server’s private key is not given.Pareil ici, pas une apostrophe normale