2022-11-30 19:33:05 -08:00
|
|
|
import console
|
|
|
|
|
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 19:33:05 -08:00
|
|
|
console.write_str(self.console, f'{pid} {name} {args}\n')
|
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
|