Hello world with dependencies
Print a greeting through an injected logger. Startup selects the providers, and export files choose what each folder makes public.
Start with the project overview, then open an operation’s sequence or explanation. Source stays beside its spec when you need to inspect an expression. Choose Indentation or Braces for that code view; the choice carries across files.
Follow the program
Read the explanation of main.aug. Startup binds the console, logger, and application, then resolves the greeter and calls it.
Read the explanation of app/greeter.aug. The greeter receives its logger in the header and delegates the greeting to it. The interface states the console effect.
Read the explanation of logging/export.aug. The logging folder exports Logger and ConsoleLogger for callers.
Read the explanation of logging/logger.aug. Logger requires a log method. ConsoleLogger writes the message through its injected console.
Explore the generated project diagrams to follow data between folders, then open module interactions and API sequences.
Project files
Try this project
Download this project, then extract the archive in an empty working folder. It contains source, configuration, and compiled specs. Install August once, then run these commands. Native libraries are prepared automatically when needed:
cd hello
aug check .
aug spec .
aug run .