chore: Prepare for initial release of the LOM.

This commit is contained in:
greysoh 2024-05-10 08:48:09 -04:00
parent 422ec568e2
commit 98d5f18fef
3 changed files with 12 additions and 12 deletions

View file

@ -37,7 +37,7 @@ export async function run(
) { ) {
const program = new SSHCommand(println); const program = new SSHCommand(println);
program.description("Manages backends for NextNet"); program.description("Manages backends for NextNet");
program.version("v1.0.0-testing"); program.version("v1.0.0");
const addBackend = new SSHCommand(println, "add"); const addBackend = new SSHCommand(println, "add");
@ -285,7 +285,7 @@ export async function run(
connectionDetails = JSON.stringify(unstringifiedArguments); connectionDetails = JSON.stringify(unstringifiedArguments);
} }
const response = await axios.post("/api/v1/backends/lookup", { const response = await axios.post("/api/v1/backends/create", {
token, token,
name, name,
@ -301,7 +301,7 @@ export async function run(
if (response.data.error) { if (response.data.error) {
println(`Error: ${response.data.error}\n`); println(`Error: ${response.data.error}\n`);
} else { } else {
println("Error stopping a connection!\n"); println("Error creating a backend!\n");
} }
return; return;
@ -322,7 +322,7 @@ export async function run(
return; return;
} }
const response = await axios.post("/api/v1/backends/create", { const response = await axios.post("/api/v1/backends/remove", {
token, token,
id id
}); });
@ -383,7 +383,7 @@ export async function run(
if (response.data.error) { if (response.data.error) {
println(`Error: ${response.data.error}\n`); println(`Error: ${response.data.error}\n`);
} else { } else {
println("Error stopping a connection!\n"); println("Error looking up backends!\n");
} }
return; return;
@ -467,7 +467,7 @@ export async function run(
if (response.data.error) { if (response.data.error) {
println(`Error: ${response.data.error}\n`); println(`Error: ${response.data.error}\n`);
} else { } else {
println("Error stopping a connection!\n"); println("Error getting logs!\n");
} }
return; return;

View file

@ -47,7 +47,7 @@ export async function run(
const program = new SSHCommand(println); const program = new SSHCommand(println);
program.description("Manages connections for NextNet"); program.description("Manages connections for NextNet");
program.version("v1.0.0-testing"); program.version("v1.0.0");
const addCommand = new SSHCommand(println, "add"); const addCommand = new SSHCommand(println, "add");
addCommand.description("Creates a new connection"); addCommand.description("Creates a new connection");
@ -125,7 +125,7 @@ export async function run(
if (response.data.error) { if (response.data.error) {
println(`Error: ${response.data.error}\n`); println(`Error: ${response.data.error}\n`);
} else { } else {
println("Error requesting connections!\n"); println("Error creating a connection!\n");
} }
return; return;
@ -357,7 +357,7 @@ export async function run(
if (response.data.error) { if (response.data.error) {
println(`Error: ${response.data.error}\n`); println(`Error: ${response.data.error}\n`);
} else { } else {
println("Error requesting connections!\n"); println("Error requesting inbound connections!\n");
} }
return; return;

View file

@ -25,7 +25,7 @@ export async function run(
const program = new SSHCommand(println); const program = new SSHCommand(println);
program.description("Manages users for NextNet"); program.description("Manages users for NextNet");
program.version("v1.0.0-testing"); program.version("v1.0.0");
const addCommand = new SSHCommand(println, "add"); const addCommand = new SSHCommand(println, "add");
addCommand.description("Create a new user"); addCommand.description("Create a new user");
@ -88,7 +88,7 @@ export async function run(
if (response.data.error) { if (response.data.error) {
println(`Error: ${response.data.error}\n`); println(`Error: ${response.data.error}\n`);
} else { } else {
println("Error requesting connections!\n"); println("Error creating users!\n");
} }
return; return;
@ -164,7 +164,7 @@ export async function run(
if (response.data.error) { if (response.data.error) {
println(`Error: ${response.data.error}\n`); println(`Error: ${response.data.error}\n`);
} else { } else {
println("Error finding user!\n"); println("Error finding users!\n");
} }
return; return;