jeslopalo / devkit

A little set of utilities to improve my experience as developer
1 stars 0 forks source link

Error passing (-a) parameters when run a microservice (ms -r <microservice>) #54

Open jeslopalo opened 5 years ago

jeslopalo commented 5 years ago

❯ ms -r -a variable=value jq: error (at :1): null (null) cannot be matched, as it is not a string parse error: Invalid numeric literal at line 2, column 2 jq: invalid JSON text passed to --argjson Use jq --help for help with command-line options, or see the jq manpage, or online docs at https://stedolan.github.io/jq

BUILTIN_MISUSE (code: 2): while trying to run run_arguments=($(ms::find_run_arguments "$name" "${RUN_ARGUMENTS:-}"))! at main [module/microservice/main.sh:166] at source invoking main(-r -a variable=value ) [module/microservice/main.sh:184] at execute invoking source(-r -a variable=value ) [lib/import.lib.sh:90] at ms invoking execute(main::microservice -r -a variable=value ) [bin/ms:12]

❯ ms -r -a dotted.variable=value jq: error (at :1): null (null) cannot be matched, as it is not a string parse error: Invalid numeric literal at line 2, column 2 jq: invalid JSON text passed to --argjson Use jq --help for help with command-line options, or see the jq manpage, or online docs at https://stedolan.github.io/jq

BUILTIN_MISUSE (code: 2): while trying to run run_arguments=($(ms::find_run_arguments "$name" "${RUN_ARGUMENTS:-}"))! at main [module/microservice/main.sh:166] at source invoking main(-r -a dotted.variable=value ) [module/microservice/main.sh:184] at execute invoking source(-r -a dotted.variable=value ) [lib/import.lib.sh:90] at ms invoking execute(main::microservice -r -a dotted.variable=value ) [bin/ms:12]

jeslopalo commented 5 years ago

❯ jq jq - commandline JSON processor [version 1.5-1-a5b5cbe]