Uploaded image for project: 'Magnolia CLI'
  1. Magnolia CLI
  2. NPMCLI-34

Command 'create-light-module' cannot handle absolute path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 0.0.1
    • None
    • None
    • Basel 53
    • 1

      When using the command create-light-module with the -p option, it fails, if the path is absolute.

      (-p works fine for the other commands with both relative and absolute paths).

      cmeier@chmsLittleMacBookPro ~/tmp/mgnl-cli-tests $ mgnl create-light-module yyy -p /Users/cmeier/tmp/mgnl-cli-tests/
      undefined
      /usr/local/lib/node_modules/@magnolia/cli/bin/mgnl-create-light-module.js:19
        if (e.displayHelp) {
             ^
      
      TypeError: Cannot read property 'displayHelp' of undefined
          at Object.<anonymous> (/usr/local/lib/node_modules/@magnolia/cli/bin/mgnl-create-light-module.js:19:8)
          at Module._compile (module.js:409:26)
          at Object.Module._extensions..js (module.js:416:10)
          at Module.load (module.js:343:32)
          at Function.Module._load (module.js:300:12)
          at Function.Module.runMain (module.js:441:10)
          at startup (node.js:139:18)
          at node.js:968:3
      cmeier@chmsLittleMacBookPro ~/tmp/mgnl-cli-tests $
      

      The remaining question:
      p will be the parent directory of the new light module right? (Or the directory of the new module itself?)

        Acceptance criteria

              fgrilli Federico Grilli
              cmeier Christoph Meier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 4.5h
                    4.5h