mirror of
https://github.com/Neocky/pluGET.git
synced 2024-04-29 16:12:30 +00:00
Removed debug print & text formating
Changes: - removed debug prints - changed some text formating
This commit is contained in:
parent
e1efcc4fc7
commit
e66985054c
@ -68,7 +68,6 @@ def handleInput(inputCommand, inputSelectedObject, inputParams):
|
|||||||
if inputCommand == 'exit':
|
if inputCommand == 'exit':
|
||||||
sys.exit()
|
sys.exit()
|
||||||
if inputCommand == 'help':
|
if inputCommand == 'help':
|
||||||
print(inputParams)
|
|
||||||
if inputSelectedObject == 'command' or inputSelectedObject == 'commands':
|
if inputSelectedObject == 'command' or inputSelectedObject == 'commands':
|
||||||
getCommandHelp(inputParams)
|
getCommandHelp(inputParams)
|
||||||
else:
|
else:
|
||||||
|
@ -132,7 +132,7 @@ def checkInstalledPackage(inputSelectedObject="all"):
|
|||||||
if inputSelectedObject != "*" and inputSelectedObject != "all":
|
if inputSelectedObject != "*" and inputSelectedObject != "all":
|
||||||
if inputSelectedObject == pluginIdStr or re.search(inputSelectedObject, fileName, re.IGNORECASE):
|
if inputSelectedObject == pluginIdStr or re.search(inputSelectedObject, fileName, re.IGNORECASE):
|
||||||
if pluginLatestVersion == 'N/A':
|
if pluginLatestVersion == 'N/A':
|
||||||
print(oColors.darkBlack + f" [{1}]".ljust(8), end='')
|
print(oColors.brightBlack + f" [{1}]".ljust(8), end='')
|
||||||
else:
|
else:
|
||||||
print(f" [{1}]".ljust(8), end='')
|
print(f" [{1}]".ljust(8), end='')
|
||||||
print(f"{fileName}".ljust(33), end='')
|
print(f"{fileName}".ljust(33), end='')
|
||||||
@ -142,7 +142,7 @@ def checkInstalledPackage(inputSelectedObject="all"):
|
|||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
if pluginLatestVersion == 'N/A':
|
if pluginLatestVersion == 'N/A':
|
||||||
print(oColors.darkBlack + f" [{i+1}]".ljust(8), end='')
|
print(oColors.brightBlack + f" [{i+1}]".ljust(8), end='')
|
||||||
else:
|
else:
|
||||||
print(f" [{i+1}]".ljust(8), end='')
|
print(f" [{i+1}]".ljust(8), end='')
|
||||||
print(f"{fileName}".ljust(33), end='')
|
print(f"{fileName}".ljust(33), end='')
|
||||||
|
@ -12,7 +12,7 @@ from handlers.handle_sftp import createSFTPConnection
|
|||||||
|
|
||||||
def getHelp():
|
def getHelp():
|
||||||
print(oColors.brightYellow+ "Need help?" + oColors.standardWhite)
|
print(oColors.brightYellow+ "Need help?" + oColors.standardWhite)
|
||||||
print("For a list of all the commands: 'help command'")
|
print("For a list of all commands: 'help command'")
|
||||||
print("Or check the docs here:")
|
print("Or check the docs here:")
|
||||||
print("https://github.com/Neocky/pluGET")
|
print("https://github.com/Neocky/pluGET")
|
||||||
print("Or go to the official discord.")
|
print("Or go to the official discord.")
|
||||||
@ -22,6 +22,7 @@ def getHelp():
|
|||||||
def getCommandHelp(optionalParams):
|
def getCommandHelp(optionalParams):
|
||||||
if optionalParams == None:
|
if optionalParams == None:
|
||||||
optionalParams = 'all'
|
optionalParams = 'all'
|
||||||
|
print(oColors.brightBlack + f"Help for command: {optionalParams}" +oColors.standardWhite)
|
||||||
print("┌────────────────┬─────────────────┬─────────────────┬────────────────────────────────────────────────────────┐")
|
print("┌────────────────┬─────────────────┬─────────────────┬────────────────────────────────────────────────────────┐")
|
||||||
print("│ Command │ Selected Object │ Optional Params │ Function │")
|
print("│ Command │ Selected Object │ Optional Params │ Function │")
|
||||||
print("└────────────────┴─────────────────┴─────────────────┴────────────────────────────────────────────────────────┘")
|
print("└────────────────┴─────────────────┴─────────────────┴────────────────────────────────────────────────────────┘")
|
||||||
@ -40,7 +41,7 @@ def getCommandHelp(optionalParams):
|
|||||||
print(oColors.brightBlack + " SERVER SOFTWARE MANAGEMENT:" + oColors.standardWhite)
|
print(oColors.brightBlack + " SERVER SOFTWARE MANAGEMENT:" + oColors.standardWhite)
|
||||||
print(" check serverjar Check installed server software for an update")
|
print(" check serverjar Check installed server software for an update")
|
||||||
print(" update serverjar Version/Latest Update installed server software to a specific version")
|
print(" update serverjar Version/Latest Update installed server software to a specific version")
|
||||||
print(" get-paper PaperVersion McVersion Downloads specific PaperMc version")
|
print(" get-paper PaperVersion McVersion Downloads a specific PaperMc version")
|
||||||
break
|
break
|
||||||
|
|
||||||
if optionalParams == 'exit':
|
if optionalParams == 'exit':
|
||||||
@ -85,7 +86,7 @@ def getCommandHelp(optionalParams):
|
|||||||
|
|
||||||
if optionalParams == 'get-paper':
|
if optionalParams == 'get-paper':
|
||||||
print(oColors.brightBlack + " SERVER SOFTWARE MANAGEMENT:" + oColors.standardWhite)
|
print(oColors.brightBlack + " SERVER SOFTWARE MANAGEMENT:" + oColors.standardWhite)
|
||||||
print(" get-paper PaperVersion McVersion Downloads specific PaperMc version")
|
print(" get-paper PaperVersion McVersion Downloads a specific PaperMc version")
|
||||||
break
|
break
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user