win-get-updates 0.0.2 → 0.0.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.
@@ -16,9 +16,9 @@ jobs:
16
16
  runs-on: ubuntu-latest
17
17
  steps:
18
18
  - name: Checkout code
19
- uses: actions/checkout@v4
19
+ uses: actions/checkout@v6
20
20
  - name: Set up Node.js
21
- uses: actions/setup-node@v4
21
+ uses: actions/setup-node@v6
22
22
  with:
23
23
  node-version: 'lts/*'
24
24
  - name: Install dependencies
@@ -12,11 +12,11 @@ jobs:
12
12
  publish:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- - uses: actions/checkout@v4
15
+ - uses: actions/checkout@v6
16
16
 
17
- - uses: actions/setup-node@v4
17
+ - uses: actions/setup-node@v6
18
18
  with:
19
- node-version: '24'
19
+ node-version: 'lts/*'
20
20
  registry-url: 'https://registry.npmjs.org'
21
21
  - run: npm ci
22
22
  - run: npm publish
package/README.md CHANGED
@@ -6,8 +6,22 @@ Third party CLI frontend for [winget](https://en.wikipedia.org/wiki/Windows_Pack
6
6
 
7
7
  Windows with [winget](https://en.wikipedia.org/wiki/Windows_Package_Manager) installed. Supposed to run on cmd.exe.
8
8
 
9
+ ## Install
10
+
11
+ ```
12
+ npm install -g win-get-updates
13
+ ```
14
+
9
15
  ## Run
10
16
 
17
+ ### Global
18
+
19
+ ```
20
+ wgu
21
+ ```
22
+
23
+ ### Local development
24
+
11
25
  ```
12
26
  node src\cli.js
13
27
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "win-get-updates",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Third party CLI frontend for winget update runs.",
5
5
  "repository": {
6
6
  "type": "git",
package/src/lib/menu.js CHANGED
@@ -18,8 +18,10 @@ export async function interactiveSelect(items) {
18
18
  let activeLine = 0;
19
19
 
20
20
  // Display initial menu
21
- for (const item of items) {
22
- console.log(`[ ] ${item}`);
21
+ for (let i = 0; i < items.length; i++) {
22
+ const item = items[i];
23
+ console.log(`[x] ${item}`);
24
+ selectedLines.set(i, true);
23
25
  }
24
26
  console.log('');
25
27
  console.log("Use Up/Down arrows to navigate, Space to toggle selection, 'y' to confirm, 'q' to quit.");
@@ -1,2 +1,2 @@
1
- const WGU_VERSION = '0.0.2';
1
+ const WGU_VERSION = '0.0.3';
2
2
  export default WGU_VERSION;