a lot of work, but i'd guess mostly api in the works
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import type { Stack } from '$lib/stores/stack';
|
||||
import { FileSystem } from '../filesystem/filesystem';
|
||||
import type { Command } from './command';
|
||||
import type { Process } from './process';
|
||||
|
||||
export class Shell {
|
||||
private readonly _fs: FileSystem;
|
||||
|
||||
private _passwd: User[];
|
||||
private _group: Group[];
|
||||
|
||||
@@ -14,9 +13,15 @@ export class Shell {
|
||||
private user: User;
|
||||
private _process?: Process;
|
||||
|
||||
constructor() {
|
||||
this._fs = new FileSystem();
|
||||
}
|
||||
constructor() {}
|
||||
|
||||
public static Initialize(
|
||||
username: string,
|
||||
password: string,
|
||||
commands: Map<string, Command>,
|
||||
passwd: Map<number, User>,
|
||||
group: Map<number, Group>
|
||||
) {}
|
||||
}
|
||||
|
||||
export enum ExitCode {
|
||||
|
||||
Reference in New Issue
Block a user