App-Easer

 view release on metacpan or  search on metacpan

docs/docs/02-cookbook.md  view on Meta::CPAN

---
title: 'Cookbook'
layout: default
---

# Cookbook

Some quick answers to common needs.

## Define the application structure in JSON

It might be a good idea to define the application's structure through
a JSON file. In this case, there are several ways to use it, all through
the `run` command.

If the specification is inside a standalone JSON file, just pass the path

docs/index.md  view on Meta::CPAN

with special attention to *hierarchical* interfaces (think [Git][] with
all sub-commands).

The module is still a somehow moving target, so tutorials might become
obsolete with time. I hope to update/deprecate them when this happens,
but watch out!

Available documentation:

- [Getting Started][]
- [Cookbook][]
- Tutorials:
    - [a to-do application][Tutorial: a to-do application]
    - [splitting onto multiple modules][tut-splitting]
- [Defining commands hierarchy][]
- [Command options][]

<!--
- [Partitioning code into multiple files][]
- [Help system][]
-->


[App::Easer]: https://metacpan.org/pod/App::Easer
[Perl]: https://www.perl.org/
[Git]: https://www.git-scm.com/
[Getting Started]: {{ '/docs/01-getting-started.html' | relative_url }}
[Cookbook]: {{ '/docs/02-cookbook.html' | relative_url }}
[Tutorial: a to-do application]: {{ '/docs/10-tutorial-base.html' | relative_url }}
[Defining commands hierarchy]: {{ '/docs/30-commands-hierarchy.html' | relative_url }}
[Command options]: {{ '/docs/40-command-options.html' | relative_url }}
[Partitioning code into multiple files]: {{ '/docs/05-code-partitioning.html' | relative_url }}
[Help system]: {{ '/docs/06-help-system.html' | relative_url }}
[tut-splitting]: {{ '/docs/15-tutorial-splitting.html' | relative_url }}



( run in 0.339 second using v1.01-cache-2.11-cpan-e9199f4ba4c )