2021-12-12 23:26:22 -05:00
|
|
|
import { exec } from '@kernel:base';
|
|
|
|
|
|
|
|
|
|
export function boot() {
|
|
|
|
|
for(const [name, script] of Object.entries(this.config)) {
|
|
|
|
|
exec(script);
|
2021-12-12 10:53:26 -05:00
|
|
|
}
|
2021-12-12 23:26:22 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function add(name: string, ...commandParts: string[]) {
|
|
|
|
|
this.config ??= {};
|
|
|
|
|
this.config[name] = commandParts.join(' ');
|
2021-12-12 10:53:26 -05:00
|
|
|
}
|