Skip to content

Commit

Permalink
chore: Prepare for initial release of the LOM.
Browse files Browse the repository at this point in the history
  • Loading branch information
imterah committed May 10, 2024
1 parent 422ec56 commit 98d5f18
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions lom/src/commands/backends.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function run(
) {
const program = new SSHCommand(println);
program.description("Manages backends for NextNet");
program.version("v1.0.0-testing");
program.version("v1.0.0");

const addBackend = new SSHCommand(println, "add");

Expand Down Expand Up @@ -285,7 +285,7 @@ export async function run(
connectionDetails = JSON.stringify(unstringifiedArguments);
}

const response = await axios.post("/api/v1/backends/lookup", {
const response = await axios.post("/api/v1/backends/create", {
token,

name,
Expand All @@ -301,7 +301,7 @@ export async function run(
if (response.data.error) {
println(`Error: ${response.data.error}\n`);
} else {
println("Error stopping a connection!\n");
println("Error creating a backend!\n");
}

return;
Expand All @@ -322,7 +322,7 @@ export async function run(
return;
}

const response = await axios.post("/api/v1/backends/create", {
const response = await axios.post("/api/v1/backends/remove", {
token,
id
});
Expand Down Expand Up @@ -383,7 +383,7 @@ export async function run(
if (response.data.error) {
println(`Error: ${response.data.error}\n`);
} else {
println("Error stopping a connection!\n");
println("Error looking up backends!\n");
}

return;
Expand Down Expand Up @@ -467,7 +467,7 @@ export async function run(
if (response.data.error) {
println(`Error: ${response.data.error}\n`);
} else {
println("Error stopping a connection!\n");
println("Error getting logs!\n");
}

return;
Expand Down
6 changes: 3 additions & 3 deletions lom/src/commands/connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function run(

const program = new SSHCommand(println);
program.description("Manages connections for NextNet");
program.version("v1.0.0-testing");
program.version("v1.0.0");

const addCommand = new SSHCommand(println, "add");
addCommand.description("Creates a new connection");
Expand Down Expand Up @@ -125,7 +125,7 @@ export async function run(
if (response.data.error) {
println(`Error: ${response.data.error}\n`);
} else {
println("Error requesting connections!\n");
println("Error creating a connection!\n");
}

return;
Expand Down Expand Up @@ -357,7 +357,7 @@ export async function run(
if (response.data.error) {
println(`Error: ${response.data.error}\n`);
} else {
println("Error requesting connections!\n");
println("Error requesting inbound connections!\n");
}

return;
Expand Down
6 changes: 3 additions & 3 deletions lom/src/commands/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function run(

const program = new SSHCommand(println);
program.description("Manages users for NextNet");
program.version("v1.0.0-testing");
program.version("v1.0.0");

const addCommand = new SSHCommand(println, "add");
addCommand.description("Create a new user");
Expand Down Expand Up @@ -88,7 +88,7 @@ export async function run(
if (response.data.error) {
println(`Error: ${response.data.error}\n`);
} else {
println("Error requesting connections!\n");
println("Error creating users!\n");
}

return;
Expand Down Expand Up @@ -164,7 +164,7 @@ export async function run(
if (response.data.error) {
println(`Error: ${response.data.error}\n`);
} else {
println("Error finding user!\n");
println("Error finding users!\n");
}

return;
Expand Down

0 comments on commit 98d5f18

Please sign in to comment.