# AGPL 3 or any later version # (C) J.Y.Amihud ( Blender Dumbass ) from modules.Common import * def Help(): print() print(clr["bold"]+" BDServer Help"+clr["norm"]) print() print(clr["tdyl"]+"--help"+clr["norm"]+" - Prints this Help Page.") print(clr["tdyl"]+"--run"+clr["norm"]+" - Run the server.") print() print(clr["tdyl"]+"--set"+clr["norm"]+" - Use for changing settings.") print(clr["tdyl"]+"--account"+clr["norm"]+" - Manage Accounts.") print() print(clr["tdyl"]+"--create"+clr["norm"]+" - Start a new article.") print() print(clr["tdyl"]+"--config"+clr["norm"]+" - Edit config file directly, bypassing --set.") print(clr["tdyl"]+"--folder"+clr["norm"]+" - Open the folder of the website's data.") print() print(clr["tdyl"]+"--transfer"+clr["norm"]+"- Transfers legacy website data to the new format.") print() def Set(): print() print(clr["bold"]+" BDServer Set Help "+clr["norm"]) print() print(" Set is used for setting up server configurations.") print() print(clr["tdyl"]+"--title"+clr["norm"]+" - Set title of the website.") print(clr["tdyl"]+"--tagline"+clr["norm"]+" - Set tagline of the website.") print(clr["tdyl"]+"--domain"+clr["norm"]+" - Let the server know the clearnet domain.") print(clr["tdyl"]+"--tor"+clr["norm"]+" - Let the server know the tor domain.") print(clr["tdyl"]+"--email"+clr["norm"]+" - Set Email SMTP account for internal automatic messages.") print(clr["tdyl"]+"--port"+clr["norm"]+" - Set port where to run the website.") print(clr["tdyl"]+"--css"+clr["norm"]+" - Set a CSS file.") print(clr["tdyl"]+"--css_edit"+clr["norm"]+" - edit a CSS file.") print(clr["tdyl"]+"--favicon"+clr["norm"]+" - Set a favicon file.") print(clr["tdyl"]+"--add_tab"+clr["norm"]+" - Adds a category of articles.") print(clr["tdyl"]+"--edit_tab"+clr["norm"]+" - Edit the config of a category.") print() print(clr["tdyl"]+"--editor"+clr["norm"]+" - Set editor. Default nano.") print() def Accounts(): print() print(clr["bold"]+" BDServer Account Help "+clr["norm"]) print() print(" Account is used to manage website's accounts.") print() print(clr["tdyl"]+"--add"+clr["norm"]+" - Add a new account.") print(clr["tdyl"]+"--list"+clr["norm"]+" - List accounts.") print()