Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds lms import command #23

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions src/cliPref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import { SimpleFileData } from "./SimpleFileData";
export async function getCliPref(logger?: SimpleLogger) {
const cliPrefSchema = z.object({
autoLaunchMinimizedWarned: z.boolean(),
importWillMoveWarned: z.boolean().optional(),
lastLoadedModels: z.array(z.string()).optional(),
autoStartServer: z.boolean().optional(),
});
type CliPref = z.infer<typeof cliPrefSchema>;
const defaultCliPref: CliPref = {
autoLaunchMinimizedWarned: false,
importWillMoveWarned: false,
lastLoadedModels: [],
autoStartServer: undefined,
};
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { run, subcommands } from "cmd-ts";
import { bootstrap } from "./subcommands/bootstrap";
import { create } from "./subcommands/create";
import { importCmd } from "./subcommands/importCmd";
import { ls, ps } from "./subcommands/list";
import { load } from "./subcommands/load";
import { log } from "./subcommands/log";
Expand All @@ -26,6 +27,7 @@ const cli = subcommands({
unload,
create,
log,
import: importCmd,
version,
bootstrap,
},
Expand Down
Loading