It is a simple python program to create commands and use it. The operation method is as follows:
try:
from PyListCmd import command
except ImportError:
print('unable to find pycmd_command')
example=command('a',1) print(example.command_exist()[0]) python test.py
False example.delete_command()
print(example.command_exist()[0])Traceback (most recent call last):
File "c:\Users\.py", line 2, in <module>
print(example.command_exist()[0])
AttributeError: 'command' object has no attribute 'command_exist'
example.run_command(yourfunc)