forked from andrea-falco/freelens-multi-pod-logs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.ts
More file actions
23 lines (22 loc) · 920 Bytes
/
main.ts
File metadata and controls
23 lines (22 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { Main } from "@freelensapp/extensions";
import { sternPreferenceStore } from "./src/preference/stern-preference/stern-preference-store";
/**
* Main.LensExtension api allows you to access, configure, and customize Lens data add
* custom application menu items, and generally run custom code in Lens'
* main process.
*
* See more details: <https://docs.k8slens.dev/>
*/
export default class MultiPodLogsMain extends Main.LensExtension {
/**
* onActivate is called when your extension has been successfully enabled.
*/
onActivate() {
// !! Note that the console statements in MainExtension is NOT visible in the
// !! DevTools console in Lens
// To see console statements, start the Lens app from a Terminal
console.log("freelens-multi-pod-logs main | activating...");
sternPreferenceStore.loadExtension(this);
console.log("freelens-multi-pod-logs main | activated");
}
}