message: new option --import-map to lume init
diff: @@ -11,10 +11,13 @@ USAGE:
  OPTIONS:
  --config <file> specify the lume config file Default: _config.js
  + --import-map true|false use the url to import lume or the import map Default: true
  `;
  +
  export async function run(args) {
  const options = parse(args, {
  string: ["config"],
  + boolean: ["import-map"],
  unknown(option) {
  if (option.startsWith("-")) {
  throw new Error(`Unknown option: ${option}`);
  @@ -22,13 +25,18 @@ export async function run(args) {
  },
  default: {
  config: "_config.js",
  + "import-map": true,
  },
  });
  validateArgsCount("init", options._, 1);
  + const lumeUrl = options["import-map"]
  + ? `lume/mod.js`
  + : `https://deno.land/x/lume@${version}/mod.js`;
  +
  await Deno.writeTextFile(
  options.config,
  - `import lume from "https://deno.land/x/lume@${version}/mod.js";
  + `import lume from "${lumeUrl}";
  const site = lume();
  