Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51ddcf7

Browse files
committed
fix(cli): add commands.yml.mako
It was previously hidden thanks to .gitignore. Good I made a fresh clone to see if make really really works.
1 parent acd42df commit 51ddcf7

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<%namespace name="util" file="../../lib/util.mako"/>\
2+
<%
3+
from util import (hash_comment, new_context)
4+
from cli import (subcommand_md_filename, SPLIT_START, SPLIT_END)
5+
6+
c = new_context(schemas, resources, context.get('methods'))
7+
%>\
8+
% for resource in sorted(c.rta_map.keys()):
9+
% for method in sorted(c.rta_map[resource]):
10+
${SPLIT_START} ${subcommand_md_filename(resource, method)}
11+
${resource.upper()} DOCS
12+
13+
${method.upper()}
14+
${SPLIT_END}
15+
% endfor # each method
16+
% endfor # each resource

0 commit comments

Comments
 (0)