This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Put it in your bin folder, build the site, and run `dart run bin/server.dart` | |
// Go to http://localhost:8080 to see the result! o(^▽^)o | |
// | |
// Remember to open in an incognito or guest window, or the browser might use | |
// the cache instead of letting the server render it (yes FireFox that's you). | |
import 'dart:io'; | |
// Remember to add these dependencies! | |
import 'package:mime/mime.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module main | |
import cli, os | |
fn main( | |
mut app := cli.Command{ | |
name: 'pizzahut' | |
description: 'Cli for ordering pizza from Pizza Hut' | |
// execute: // Without specifying the `execute` parameter, it will just output the usage message | |
commands: [ |
NewerOlder