fibonaccios/bin/ps.py
2022-11-30 03:32:41 +00:00

12 lines
308 B
Python

def get_app_class(template):
class App(template):
def F_main(self):
apps = self.os.apps
for pid, app in apps.items():
args = app.argv[1:]
name = app.name
print(f'{pid} {name} {args}')
self.exit()
return App