-
Notifications
You must be signed in to change notification settings - Fork 3
/
appspec-spec.yaml
76 lines (67 loc) · 2.17 KB
/
appspec-spec.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
name: appspec
appspec: { version: 0.001 }
title: Utilities for spec files for App::Spec cli apps
class: App::AppSpec
markup: pod
description: |
This script is a collection of tools for authors of L<App::Spec> command line
scripts.
# generate completion
% appspec completion --bash path/to/spec.yaml
# generate pod
% appspec pod path/to/spec.yaml
# validate your spec file
% appspec validate path/to/spec.yaml
# generate a new App::Spec app skeleton
% appspec new --class App::foo --name foo --with-subcommands
options: []
subcommands:
completion:
summary: Generate completion for a specified spec file
description: |
This command takes a spec file and outputs the corresponding
shell script for tab completion.
op: cmd_completion
options:
- name=s --name of the program (optional, override the value from the spec)
- zsh --for zsh
- bash --for bash
parameters:
- ¶m_spec_file
+spec_file= +file --Path to the spec file (use '-' for standard input)
new:
summary: Create new app
op: cmd_new
description: |
This command creates a skeleton for a new app.
It will create a directory for your app and write a skeleton
spec file.
Example:
appspec new --name myprogram --class App::MyProgram App-MyProgram
parameters:
- path= +dirname --Path to the distribution directory (default is 'Dist-Name' in current directory)
options:
- +name|n=s --The (file) name of the app
- +class|c=s --The main class name for your app implementation
- overwrite|o --Overwrite existing dist directory
- with-subcommands|s --Create an app with subcommands
pod:
summary: Generate pod
description: |
This command takes a spec file and outputs the generated pod
documentation.
op: generate_pod
parameters:
- *param_spec_file
validate:
summary: Validate spec file
description: |
This command takes a spec file and validates it against the current
L<App::Spec> schema.
op: cmd_validate
parameters:
- *param_spec_file
options:
- color|C --output colorized
# vim:et:sts=2:sws=2:sw=2:foldmethod=indent