Skip to content

Commit 53bff0f

Browse files
committed
I'm crushing your head!
1 parent fa56ce5 commit 53bff0f

9 files changed

Lines changed: 509 additions & 61 deletions

File tree

apps/Terminal.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3656,7 +3656,10 @@ if (RELOAD_TERM_ONRELOAD) await this.Win.reload({appOnly: true});
36563656
}//»
36573657
async _reloadLibs(arr){//«
36583658
for (let mod of arr){
3659-
if (!this.ShellMod.allLibs[mod]) continue;
3659+
if (!this.ShellMod.allLibs[mod]) {
3660+
cwarn(`Skipping: ${mod}`);
3661+
continue;
3662+
}
36603663
this.doOverlay(`Delete: ${mod}`);
36613664
await this.ShellMod.util.deleteMods([mod]);
36623665
await this.ShellMod.util.doImports([mod], cerr);
@@ -3665,9 +3668,9 @@ async _reloadLibs(arr){//«
36653668
async _onreload(){//«
36663669
//SGPEJGKH
36673670
//Just reload the shell (if working on a devtest command)
3668-
await this._reloadShell();
3671+
// await this._reloadShell();
36693672

3670-
// await this._reloadLibs(["games.poker"]);
3673+
await this._reloadLibs(["inet.fs"]);
36713674
// await this._reloadLibs(RELOAD_LIBS);
36723675

36733676
}//»

coms/fs.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ init(){
655655
}
656656
}
657657
async run(){
658-
let{args, err: _err, term}=this;
658+
let{args, term}=this;
659659
let have_error=false;
660660
const err=mess=>{
661661
this.err(mess);
@@ -735,9 +735,9 @@ const com_cp = class extends Com{//«
735735
const com_mkdir = class extends Com{//«
736736

737737
async run(){
738-
let{args,term,err: _err}=this;
738+
let{args,term}=this;
739739
let have_error=false;
740-
const err=(mess)=>{if(!mess)return;have_error=true;_err(mess);};
740+
const err=(mess)=>{if(!mess)return;have_error=true;this.err(mess);};
741741
if (!args.length) {
742742
err("missing operand");
743743
}
@@ -790,9 +790,9 @@ static getOpts(){//«
790790
};
791791
}//»
792792
async run(){
793-
let{args,term,err: _err}=this;
793+
let{args,term}=this;
794794
let have_error=false;
795-
const err=(mess)=>{if(!mess)return;have_error=true;_err(mess);};
795+
const err=(mess)=>{if(!mess)return;have_error=true;this.err(mess);};
796796
if (!args.length) {
797797
err("missing operand");
798798
}
@@ -807,10 +807,10 @@ async run(){
807807
const com_rm = class extends Com{//«
808808

809809
async run(){
810-
let{args,term,err: _err, env, opts}=this;
810+
let{args,term, env, opts}=this;
811811
let have_error=false;
812812
let is_recur = (opts.recursive || opts.R || opts.r);
813-
const err=(mess)=>{if(!mess)return;have_error=true;_err(mess);};
813+
const err=(mess)=>{if(!mess)return;have_error=true;this.err(mess);};
814814
if (!args.length) {
815815
err("missing operand");
816816
}
@@ -843,9 +843,9 @@ async run(){
843843
const com_ln = class extends Com{//«
844844

845845
async run(){
846-
let{args,term,err: _err}=this;
846+
let{args,term}=this;
847847
const err=(mess)=>{
848-
_err(mess);
848+
this.err(mess);
849849
this.no();
850850
};
851851
if (!args.length) {
@@ -910,9 +910,9 @@ async run(){
910910
const com_symln = class extends Com{//«
911911

912912
async run(){
913-
let{args,term,err: _err}=this;
913+
let{args,term}=this;
914914
const err=(mess)=>{
915-
_err(mess);
915+
this.err(mess);
916916
this.no();
917917
};
918918
if (!args.length) {
@@ -995,7 +995,7 @@ sendCount(){
995995
}
996996
async run(){
997997
if (this.killed) return;
998-
let{args, err: _err, out}=this;
998+
let{args, out}=this;
999999
if (!args.length) {
10001000
if (this.stdin){
10011001
this.doWC(this.stdin);
@@ -1008,7 +1008,7 @@ async run(){
10081008
const err=mess=>{
10091009
if (!mess) return;
10101010
have_error=true;
1011-
_err(mess);
1011+
this.err(mess);
10121012
};
10131013
let rv = await get_file_lines_from_args(args, this.term, err);
10141014
// if (rv.err && rv.err.length) err(rv.err);
@@ -1165,11 +1165,11 @@ const com_purge = class extends Com{/*«*/
11651165
async run(){
11661166
if (globals.read_only) return this.no("Read only");
11671167

1168-
const{err: _err, args}=this;
1168+
const{args}=this;
11691169
let have_error = false;
11701170
const err=(mess)=>{
11711171
have_error=true;
1172-
_err(mess);
1172+
this.err(mess);
11731173
}
11741174
let dir = await fsapi.getBlobDir();
11751175
for (let arg of args){

0 commit comments

Comments
 (0)