import types


def _get_commands() -> list:
	"""
	Helper function to generate a list of available commands from all of the functions in this file.
	"""

	commands = []
	for item, value in globals().items():
		if isinstance(value, types.FunctionType) and item != "main" and item != "se_help" and not item.startswith("_"):
			commands.append(item.replace("_", "-"))

	commands.append("help")
	commands.sort()

	return commands