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.
- package/.github/workflows/lint-and-format.yml +2 -2
- package/.github/workflows/publish.yml +3 -3
- package/README.md +14 -0
- package/package.json +1 -1
- package/src/lib/menu.js +4 -2
- package/src/lib/version.js +1 -1
|
@@ -16,9 +16,9 @@ jobs:
|
|
|
16
16
|
runs-on: ubuntu-latest
|
|
17
17
|
steps:
|
|
18
18
|
- name: Checkout code
|
|
19
|
-
uses: actions/checkout@
|
|
19
|
+
uses: actions/checkout@v6
|
|
20
20
|
- name: Set up Node.js
|
|
21
|
-
uses: actions/setup-node@
|
|
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@
|
|
15
|
+
- uses: actions/checkout@v6
|
|
16
16
|
|
|
17
|
-
- uses: actions/setup-node@
|
|
17
|
+
- uses: actions/setup-node@v6
|
|
18
18
|
with:
|
|
19
|
-
node-version: '
|
|
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
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 (
|
|
22
|
-
|
|
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.");
|
package/src/lib/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const WGU_VERSION = '0.0.
|
|
1
|
+
const WGU_VERSION = '0.0.3';
|
|
2
2
|
export default WGU_VERSION;
|