Skip to content

Commit

Permalink
Merge pull request #23 from lmstudio-ai/ryan/lms-import
Browse files Browse the repository at this point in the history
Adds lms import command
  • Loading branch information
ryan-the-crayon committed May 15, 2024
2 parents b73faba + 4a5c38a commit 62f8a8e
Show file tree
Hide file tree
Showing 3 changed files with 714 additions and 0 deletions.
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

0 comments on commit 62f8a8e

Please sign in to comment.