fibonaccios/bin/ps.py

12 lines
308 B
Python
Raw Normal View History

2022-11-29 19:32:41 -08:00
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()
2022-11-29 19:18:17 -08:00
2022-11-29 19:32:41 -08:00
return App