Play

Check-in [cab10c643e]
Login
Overview
Comment:Load and initialize Elm code in bin/cli.js
Timelines: family | ancestors | descendants | both | cli
Files: files | file ages | folders
SHA3-256: cab10c643e32076266bc5e2dc38bbdf7f9ba3128006eafbb907e7732912d279e
User & Date: robin.hansen on 2021-03-30 10:04:06
Other Links: branch diff | manifest | tags
Context
2021-03-31
14:45
Initial work on cli.js <-> CLI.elm interop. Works fine, just need to implement missing messages. check-in: 4712590b0f user: robin.hansen tags: cli
2021-03-30
10:04
Load and initialize Elm code in bin/cli.js check-in: cab10c643e user: robin.hansen tags: cli
09:29
Added new Elm module containing CLI related functionality. This will be compiled toa bin/compiler.js... check-in: 5ff3a4c6ce user: robin.hansen tags: cli
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Modified bin/cli.js from [2189dee74d] to [d27b095ff3].

1






2
3
4
5
6
7
8
#!/usr/bin/env node







const subCmd = process.argv[2];
const subCmdFlags = process.argv.slice(3);

switch (subCmd) {
    case "check": checkProject(); break;
    default: printHelp(); break;

>
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env node

// Setup of Elm ports

const compiler = require(__dirname + "/compiler").Elm.CLI.init({});

// CLI

const subCmd = process.argv[2];
const subCmdFlags = process.argv.slice(3);

switch (subCmd) {
    case "check": checkProject(); break;
    default: printHelp(); break;