Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/lib/nodes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,18 @@ export async function registerNodes(program: Command) {
.addCommand(ssh)
.addCommand(logs);

await addImage(nodes);
await addCreate(nodes);
await addRedeploy(nodes);

const baseHelpText = nodes.helpInformation();

// Format short and verbose help text
nodes
.addHelpText(
"after",
`
A node is a compute instance that provides GPUs for your workloads. Nodes can be created
A node is a compute instance that provides GPUs for your workloads. Nodes can be created
as reservations (with specific start/end times) or as procurements (auto reserved pricing).

Examples:\n
Expand Down Expand Up @@ -85,7 +89,7 @@ $ sf nodes images --help
// Add action to display help if no subcommand is provided
.action(() => {
console.log(`${baseHelpText}
A node is a compute instance that provides GPUs for your workloads. Nodes can be created
A node is a compute instance that provides GPUs for your workloads. Nodes can be created
as reservations (with specific start/end times) or as procurements (auto reserved pricing).

Examples:\n
Expand All @@ -102,8 +106,4 @@ To see a full list of examples, run:
$ sf nodes --help
`);
});

await addImage(nodes);
await addCreate(nodes);
await addRedeploy(nodes);
}