Skip to content

Commit

Permalink
fix: configure command (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenWhite authored Jan 9, 2025
1 parent 0a6c909 commit 39e1e4c
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 76 deletions.
9 changes: 0 additions & 9 deletions src/Commands/Configure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ export class Configure implements CommandModule {

public builder(argv: Argv): Argv {
return argv
.option(TestType.TCP, {
hidden: true,
requiresArg: true,
describe: `Bright application base URL`
})
.option(TestType.HTTP, {
hidden: true,
requiresArg: true,
Expand Down Expand Up @@ -70,10 +65,6 @@ export class Configure implements CommandModule {
})
.register(ConnectivityUrls, {
useValue: new Map([
Configure.getMapEntryOrThrow(
TestType.TCP,
(args[TestType.TCP] ?? args.api) as string
),
Configure.getMapEntryOrThrow(
TestType.HTTP,
(args[TestType.HTTP] ?? args.api) as string
Expand Down
54 changes: 0 additions & 54 deletions src/Wizard/Connectivity/TCPConnectivity.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/Wizard/Connectivity/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ export * from './Connectivity';
export * from './ConnectivityAnalyzer';
export * from './DefaultConnectivityAnalyzer';
export * from './HTTPConnectivity';
export * from './TCPConnectivity';
export * from './TracerouteConnectivity';
4 changes: 1 addition & 3 deletions src/Wizard/Readline/ReadlinePlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class ReadlinePlatform implements Platform {
const url = this.urls.get(type);

return this.process(
`Validating that the connection to ${url.host} at port ${url.port} is open`,
`Validating the ${type} connection to ${url.toString()}`,
() => this.connectivityService.verifyAccess(type, url)
);
}
Expand All @@ -117,8 +117,6 @@ export class ReadlinePlatform implements Platform {
// eslint-disable-next-line no-console
console.log(`Starting EXTERNAL communication diagnostics:${EOL}`);

await this.processConnectivity(TestType.TCP);

await this.processConnectivity(TestType.HTTP);

await this.process('Verifying provided Token and Repeater ID', () =>
Expand Down
1 change: 0 additions & 1 deletion src/Wizard/TestType.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export enum TestType {
HTTP = 'http',
TCP = 'tcp',
AUTH = 'auth',
TRACEROUTE = 'traceroute'
}
8 changes: 0 additions & 8 deletions src/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
HTTPConnectivity,
Platform,
ReadlinePlatform,
TCPConnectivity,
TracerouteConnectivity,
Tokens
} from './Wizard';
Expand Down Expand Up @@ -139,13 +138,6 @@ container
},
{ lifecycle: Lifecycle.Singleton }
)
.register(
Connectivity,
{
useClass: TCPConnectivity
},
{ lifecycle: Lifecycle.Singleton }
)
.register(
Connectivity,
{ useClass: TracerouteConnectivity },
Expand Down

0 comments on commit 39e1e4c

Please sign in to comment.