Skip to content

Commit

Permalink
fix(CLI): resolve generator issues
Browse files Browse the repository at this point in the history
* exclude dataflow API - it doesn't have a single method as long as
  it's in B4. See #78
* assure ARRAY branch can be hit

Fixes #77
  • Loading branch information
Byron committed Apr 22, 2015
1 parent b830c1c commit 797f289
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion etc/api/shared.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ api:
blacklist:
# exclude APIs which currently don't build correctly. State the reason for the exclusion as well
# to allow looking at it at a later point.
-
# in beta, there is not a single method !
- dataflow
terms:
# how to actually do something with the API
action: doit
Expand Down
4 changes: 2 additions & 2 deletions src/mako/cli/lib/engine.mako
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from cli import (mangle_subcommand, new_method_context, PARAM_FLAG, STRUCT_FLAG, UPLOAD_FLAG, OUTPUT_FLAG, VALUE_ARG,
CONFIG_DIR, SCOPE_FLAG, is_request_value_property, FIELD_SEP, docopt_mode, FILE_ARG, MIME_ARG, OUT_ARG,
cmd_ident, call_method_ident, arg_ident, POD_TYPES, flag_ident, ident, JSON_TYPE_VALUE_MAP,
KEY_VALUE_ARG, to_cli_schema, SchemaEntry, CTYPE_POD, actual_json_type, CTYPE_MAP)
KEY_VALUE_ARG, to_cli_schema, SchemaEntry, CTYPE_POD, actual_json_type, CTYPE_MAP, CTYPE_ARRAY)
v_arg = '<%s>' % VALUE_ARG
SOPT = 'self.opt.'
Expand Down Expand Up @@ -55,9 +55,9 @@ impl Engine {
let mut err = InvalidOptionsError::new();
let mut call_result: Option<api::Error>;
let mut err_opt: Option<InvalidOptionsError> = None;
## RESOURCE LOOP: check for set primary subcommand
% for resource in sorted(c.rta_map.keys()):
% if loop.first:
if \
% else:
Expand Down

0 comments on commit 797f289

Please sign in to comment.