Skip to content

Commit 3b48d60

Browse files
committed
refactor: named imports
1 parent 43b31d8 commit 3b48d60

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/commands/doctor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { checkInstalledTools } from "@/lib/setup";
1010
*
1111
* Inspect and remedy your local machine for Solana development
1212
*/
13-
export default function doctorCommand() {
13+
export function doctorCommand() {
1414
return new Command("doctor")
1515
.configureOutput(cliOutputConfig)
1616
.description("inspect and remedy your local development environment")
@@ -22,7 +22,7 @@ export default function doctorCommand() {
2222
*
2323
* List the current installed versions of Solana development tooling
2424
*/
25-
export function doctorListCommand() {
25+
function doctorListCommand() {
2626
return new Command("list")
2727
.configureOutput(cliOutputConfig)
2828
.description("list the current versions of Solana development tooling")

src/commands/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const toolNames: Array<ToolNames> = [
3434
*
3535
* Setup your local machine for Solana development
3636
*/
37-
export default function installCommand() {
37+
export function installCommand() {
3838
return (
3939
new Command("install")
4040
.configureOutput(cliOutputConfig)

src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { assertRuntimeVersion } from "@/lib/node";
44
import { errorMessage } from "@/lib/logs";
55
import cliProgramRoot from "@/commands";
66

7-
import installCommand from "@/commands/install";
8-
import doctorCommand from "@/commands/doctor";
7+
import { installCommand } from "@/commands/install";
8+
// import { doctorCommand } from "@/commands/doctor";
99

1010
// ensure the user running the cli tool is on a supported javascript runtime version
1111
assertRuntimeVersion();
@@ -14,7 +14,8 @@ async function main() {
1414
try {
1515
const program = cliProgramRoot();
1616

17-
program.addCommand(installCommand()).addCommand(doctorCommand());
17+
program.addCommand(installCommand());
18+
// .addCommand(doctorCommand());
1819

1920
// set the default action to `help` without an error
2021
if (process.argv.length === 2) {

0 commit comments

Comments
 (0)