@granular-software/sdk 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -7327,7 +7327,7 @@ function confirm(question, defaultYes = true) {
|
|
|
7327
7327
|
return answer.toLowerCase().startsWith("y");
|
|
7328
7328
|
});
|
|
7329
7329
|
}
|
|
7330
|
-
async function initCommand(projectName) {
|
|
7330
|
+
async function initCommand(projectName, options) {
|
|
7331
7331
|
printHeader();
|
|
7332
7332
|
if (manifestExists()) {
|
|
7333
7333
|
warn("A granular.json already exists in this directory.");
|
|
@@ -7388,7 +7388,7 @@ async function initCommand(projectName) {
|
|
|
7388
7388
|
ensureGitignore();
|
|
7389
7389
|
success("Updated .gitignore");
|
|
7390
7390
|
console.log();
|
|
7391
|
-
const shouldBuild = await confirm("Trigger initial build?", true);
|
|
7391
|
+
const shouldBuild = options?.skipBuild ? false : await confirm("Trigger initial build?", true);
|
|
7392
7392
|
if (shouldBuild) {
|
|
7393
7393
|
const building = spinner("Uploading manifest...");
|
|
7394
7394
|
try {
|
|
@@ -8209,9 +8209,9 @@ async function simulateCommand(sandboxIdArg) {
|
|
|
8209
8209
|
var VERSION = "0.2.0";
|
|
8210
8210
|
var program2 = new Command();
|
|
8211
8211
|
program2.name("granular").description("Build and deploy AI sandboxes from code").version(VERSION, "-v, --version");
|
|
8212
|
-
program2.command("init [project-name]").description("Initialize a new Granular project").action(async (projectName) => {
|
|
8212
|
+
program2.command("init [project-name]").description("Initialize a new Granular project").option("--skip-build", "Skip the initial build step").action(async (projectName, opts) => {
|
|
8213
8213
|
try {
|
|
8214
|
-
await initCommand(projectName);
|
|
8214
|
+
await initCommand(projectName, { skipBuild: opts.skipBuild });
|
|
8215
8215
|
} catch (err) {
|
|
8216
8216
|
error(err.message);
|
|
8217
8217
|
process.exit(1);
|