@ecmaos/coreutils 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +182 -0
  3. package/dist/commands/cd.d.ts.map +1 -1
  4. package/dist/commands/cd.js +1 -7
  5. package/dist/commands/cd.js.map +1 -1
  6. package/dist/commands/hex.d.ts +4 -0
  7. package/dist/commands/hex.d.ts.map +1 -0
  8. package/dist/commands/hex.js +82 -0
  9. package/dist/commands/hex.js.map +1 -0
  10. package/dist/commands/less.d.ts +4 -0
  11. package/dist/commands/less.d.ts.map +1 -0
  12. package/dist/commands/less.js +173 -0
  13. package/dist/commands/less.js.map +1 -0
  14. package/dist/commands/ln.d.ts +4 -0
  15. package/dist/commands/ln.d.ts.map +1 -0
  16. package/dist/commands/ln.js +104 -0
  17. package/dist/commands/ln.js.map +1 -0
  18. package/dist/commands/ls.d.ts.map +1 -1
  19. package/dist/commands/ls.js +91 -11
  20. package/dist/commands/ls.js.map +1 -1
  21. package/dist/commands/sed.d.ts +4 -0
  22. package/dist/commands/sed.d.ts.map +1 -0
  23. package/dist/commands/sed.js +381 -0
  24. package/dist/commands/sed.js.map +1 -0
  25. package/dist/commands/tee.d.ts +4 -0
  26. package/dist/commands/tee.d.ts.map +1 -0
  27. package/dist/commands/tee.js +87 -0
  28. package/dist/commands/tee.js.map +1 -0
  29. package/dist/index.d.ts +5 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +16 -1
  32. package/dist/index.js.map +1 -1
  33. package/package.json +4 -2
  34. package/src/commands/cd.ts +1 -8
  35. package/src/commands/hex.ts +92 -0
  36. package/src/commands/less.ts +192 -0
  37. package/src/commands/ln.ts +108 -0
  38. package/src/commands/ls.ts +85 -11
  39. package/src/commands/sed.ts +436 -0
  40. package/src/commands/tee.ts +93 -0
  41. package/src/index.ts +16 -1
package/src/index.ts CHANGED
@@ -12,6 +12,7 @@ import { createCommand as createCd } from './commands/cd.js'
12
12
  import { createCommand as createChmod } from './commands/chmod.js'
13
13
  import { createCommand as createCp } from './commands/cp.js'
14
14
  import { createCommand as createEcho } from './commands/echo.js'
15
+ import { createCommand as createLn } from './commands/ln.js'
15
16
  import { createCommand as createLs } from './commands/ls.js'
16
17
  import { createCommand as createMkdir } from './commands/mkdir.js'
17
18
  import { createCommand as createMv } from './commands/mv.js'
@@ -20,6 +21,10 @@ import { createCommand as createRm } from './commands/rm.js'
20
21
  import { createCommand as createRmdir } from './commands/rmdir.js'
21
22
  import { createCommand as createStat } from './commands/stat.js'
22
23
  import { createCommand as createTouch } from './commands/touch.js'
24
+ import { createCommand as createHex } from './commands/hex.js'
25
+ import { createCommand as createLess } from './commands/less.js'
26
+ import { createCommand as createSed } from './commands/sed.js'
27
+ import { createCommand as createTee } from './commands/tee.js'
23
28
 
24
29
  // Export individual command factories
25
30
  export { createCommand as createCat } from './commands/cat.js'
@@ -27,6 +32,7 @@ export { createCommand as createCd } from './commands/cd.js'
27
32
  export { createCommand as createChmod } from './commands/chmod.js'
28
33
  export { createCommand as createCp } from './commands/cp.js'
29
34
  export { createCommand as createEcho } from './commands/echo.js'
35
+ export { createCommand as createLn } from './commands/ln.js'
30
36
  export { createCommand as createLs } from './commands/ls.js'
31
37
  export { createCommand as createMkdir } from './commands/mkdir.js'
32
38
  export { createCommand as createMv } from './commands/mv.js'
@@ -35,6 +41,10 @@ export { createCommand as createRm } from './commands/rm.js'
35
41
  export { createCommand as createRmdir } from './commands/rmdir.js'
36
42
  export { createCommand as createStat } from './commands/stat.js'
37
43
  export { createCommand as createTouch } from './commands/touch.js'
44
+ export { createCommand as createHex } from './commands/hex.js'
45
+ export { createCommand as createLess } from './commands/less.js'
46
+ export { createCommand as createSed } from './commands/sed.js'
47
+ export { createCommand as createTee } from './commands/tee.js'
38
48
 
39
49
  /**
40
50
  * Creates all coreutils commands.
@@ -47,6 +57,7 @@ export function createAllCommands(kernel: Kernel, shell: Shell, terminal: Termin
47
57
  chmod: createChmod(kernel, shell, terminal),
48
58
  cp: createCp(kernel, shell, terminal),
49
59
  echo: createEcho(kernel, shell, terminal),
60
+ ln: createLn(kernel, shell, terminal),
50
61
  ls: createLs(kernel, shell, terminal),
51
62
  mkdir: createMkdir(kernel, shell, terminal),
52
63
  mv: createMv(kernel, shell, terminal),
@@ -54,7 +65,11 @@ export function createAllCommands(kernel: Kernel, shell: Shell, terminal: Termin
54
65
  rm: createRm(kernel, shell, terminal),
55
66
  rmdir: createRmdir(kernel, shell, terminal),
56
67
  stat: createStat(kernel, shell, terminal),
57
- touch: createTouch(kernel, shell, terminal)
68
+ touch: createTouch(kernel, shell, terminal),
69
+ hex: createHex(kernel, shell, terminal),
70
+ less: createLess(kernel, shell, terminal),
71
+ sed: createSed(kernel, shell, terminal),
72
+ tee: createTee(kernel, shell, terminal)
58
73
  }
59
74
  }
60
75