We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--cluster
--hostname
1 parent 7054aa5 commit f52b4ccCopy full SHA for f52b4cc
src/Utils/Helpers.ts
@@ -23,6 +23,7 @@ export interface CommandArgs {
23
24
export interface ClusterArgs {
25
cluster?: string;
26
+ hostname?: string;
27
}
28
29
export interface ClusterUrls {
@@ -54,11 +55,13 @@ export class Helpers {
54
55
let bus: string;
56
let api: string;
57
- if (args.cluster) {
58
- let host = args.cluster;
+ const hostname = args.cluster ?? args.hostname;
59
+
60
+ if (hostname) {
61
+ let host = hostname;
62
63
try {
- ({ host } = new URL(args.cluster as string));
64
+ ({ host } = new URL(hostname));
65
} catch {
66
// noop
67
0 commit comments