palabra 1.8.6 → 1.9.0

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.
package/ChangeLog CHANGED
@@ -1,3 +1,11 @@
1
+ 2026.04.08, v1.9.0
2
+
3
+ fix:
4
+ - 12b92a1 letras: rust
5
+
6
+ feature:
7
+ - 50115f2 letra: rust: bin
8
+
1
9
  2026.04.08, v1.8.6
2
10
 
3
11
  fix:
package/bin/palabra.js CHANGED
@@ -21,10 +21,14 @@ const instrucciones = args._.shift();
21
21
 
22
22
  let cmd = '';
23
23
 
24
- if (!instrucciones || instrucciones === 'i')
25
- cmd = await instalar(args._);
24
+ if (!instrucciones || instrucciones === 'i') {
25
+ cmd = await instalar(args._, args);
26
+ } else {
27
+ console.error('palabra i [letra1, letra2, ..., letraN]');
28
+ process.exit(1);
29
+ }
26
30
 
27
- if (!args.quiet)
31
+ if (!args.quiet && cmd)
28
32
  console.log(`> ${cmd}`);
29
33
 
30
34
  if (args['dry-run'])
@@ -2,8 +2,29 @@
2
2
  "name": "rust",
3
3
  "url": "https://sh.rustup.rs",
4
4
  "confirmar": false,
5
+ "bin": {
6
+ "cargo": "bin/cargo",
7
+ "cargo-clippy": "bin/cargo-clippy",
8
+ "cargo-fmt": "bin/cargo-fmt",
9
+ "cargo-miri": "bin/cargo-miri",
10
+ "clippy-driver": "bin/clippy-driver",
11
+ "rls": "bin/rls",
12
+ "rust-analyzer": "bin/rust-analyzer",
13
+ "rust-gdb": "bin/rust-gdb",
14
+ "rust-gdbgui": "bin/rust-gdbgui",
15
+ "rust-lldb": "bin/rust-lldb",
16
+ "rustc": "bin/rustc",
17
+ "rustdoc": "bin/rustdoc",
18
+ "rustfmt": "bin/rustfmt",
19
+ "rustup": "bin/rustup"
20
+ },
21
+ "dir": "cargo",
5
22
  "env": {
6
23
  "RUSTUP_HOME": "{{ directorio }}/rustup",
7
24
  "CARGO_HOME": "{{ directorio }}/cargo"
8
- }
25
+ },
26
+ "commands": [
27
+ "rustup update",
28
+ "rustup toolchain install stable"
29
+ ]
9
30
  }
@@ -8,6 +8,9 @@ export const parseArgs = (args) => {
8
8
  d: 'directorio',
9
9
  v: 'version',
10
10
  },
11
+ default: {
12
+ directorio: '~/.local/src',
13
+ },
11
14
  boolean: [
12
15
  'quiet',
13
16
  'help',
@@ -37,6 +37,9 @@ export const parse = (letra) => {
37
37
  bin,
38
38
  }));
39
39
 
40
+ if (letra.commands)
41
+ commands.push(...letra.commands);
42
+
40
43
  return commands;
41
44
  };
42
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palabra",
3
- "version": "1.8.6",
3
+ "version": "1.9.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Palabra software installer",