- initial changes to data shapes
- ls command needs fixing
This commit is contained in:
@@ -23,14 +23,12 @@ export class Process {
|
||||
readonly CommandDescriptor: CommandDescriptor;
|
||||
readonly State: ShellState;
|
||||
readonly Args: string[];
|
||||
readonly Flags: string[];
|
||||
|
||||
constructor(pid: number, state: ShellState, descriptor: CommandDescriptor, flags: string[], args: string[]) {
|
||||
constructor(pid: number, state: ShellState, descriptor: CommandDescriptor, args: string[]) {
|
||||
this.PID = pid;
|
||||
this.State = state;
|
||||
this.Name = descriptor.name;
|
||||
this.CommandDescriptor = descriptor;
|
||||
this.Flags = flags;
|
||||
this.Args = args;
|
||||
// Check if positive later and throw an error if so
|
||||
this._MaxChunkByteSize = 1024;
|
||||
@@ -68,7 +66,7 @@ export class Process {
|
||||
},
|
||||
};
|
||||
|
||||
const promise = this.CommandDescriptor.fn(io, this.State, this.Flags, this.Args);
|
||||
const promise = this.CommandDescriptor.fn(io, this.State, this.Args);
|
||||
|
||||
promise
|
||||
.then(output => {
|
||||
|
||||
Reference in New Issue
Block a user