Skip to content

Commit 7a52fbb

Browse files
committed
feat: remove podman CLI impl copy and use podman ext API
Signed-off-by: Denis Golovin <[email protected]>
1 parent dccfec8 commit 7a52fbb

File tree

5 files changed

+164
-105
lines changed

5 files changed

+164
-105
lines changed

__mocks__/@podman-desktop/api.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const plugin = {
4444
show: vi.fn(),
4545
iconClass: '',
4646
}),
47-
withProgress: (options, callback) => {
47+
withProgress: (_options, callback) => {
4848
return callback({
4949
report: () => {},
5050
});
@@ -71,6 +71,9 @@ const plugin = {
7171
};
7272
},
7373
},
74+
extensions: {
75+
getExtension: vi.fn(),
76+
}
7477
};
7578

7679
module.exports = plugin;

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
},
4949
"dependencies": {
5050
"@podman-desktop/api": "^1.14.1",
51+
"@podman-desktop/podman-extension-api": "^1.14.0",
5152
"@redhat-developer/rhcra-client": "^0.0.1",
5253
"@redhat-developer/rhsm-client": "^0.0.4",
5354
"axios": "^1.7.7",
@@ -87,5 +88,8 @@
8788
"vitest": "^2.0.5",
8889
"xvfb-maybe": "^0.2.1",
8990
"zip-local": "^0.3.5"
90-
}
91+
},
92+
"extensionDependencies": [
93+
"podman-desktop.podman"
94+
]
9195
}

pnpm-lock.yaml

+96-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)