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
|
2022-11-30 18:11:02 -08:00
|
|
|
self.console.write(f'{pid} {name} {args}')
|
2022-11-29 19:32:41 -08:00
|
|
|
self.exit()
|
2022-11-29 19:18:17 -08:00
|
|
|
|
2022-11-29 19:32:41 -08:00
|
|
|
return App
|