{"push_id":1948431438,"size":5,"distinct_size":5,"ref":"refs/heads/WIP/master/switch-to-cobra","head":"9de25af615591155958760cd82371e034e569730","before":"31ae362ed8b341110113af27a4d247e5e07144ea","commits":[{"sha":"f126b4ac8522f5c6d628fa748acc8308a9a8d060","author":{"name":"John McCabe","email":"febb44f0a3536761749f6c82b901d79bfa74cce8@johnmccabe.net"},"message":"Add tests for legacy cli transation\n\nThis commit adds some tests to aid building the `translateLegacyFlags`\nfunction which will take a legacy CLI invocation and turn it into a\ncobra verb/noun set of args.\n\nSigned-off-by: John McCabe <john@johnmccabe.net>","distinct":true,"url":"https://api.github.com/repos/johnmccabe/faas-cli/commits/f126b4ac8522f5c6d628fa748acc8308a9a8d060"},{"sha":"7bfc5ee6ed9c5e10afc693212b47cbe3065beda7","author":{"name":"John McCabe","email":"febb44f0a3536761749f6c82b901d79bfa74cce8@johnmccabe.net"},"message":"Add legacy cli flags translation error tests\n\nAdds some tests to test errors thrown by translateLegacyOpts(), note\nthat the name of the function has been updated.\n\nSigned-off-by: John McCabe <john@johnmccabe.net>","distinct":true,"url":"https://api.github.com/repos/johnmccabe/faas-cli/commits/7bfc5ee6ed9c5e10afc693212b47cbe3065beda7"},{"sha":"f0d5673cf5cb0ded1b97dd16fc8e14320f37b62a","author":{"name":"John McCabe","email":"febb44f0a3536761749f6c82b901d79bfa74cce8@johnmccabe.net"},"message":"Translate legacy go flag args to Cobra args\n\nThis commit intercepts the command line args passed to `faas-cli` and\nattempts to translate them from the deprecated go flag based syntax\n(`faas-cli -action xxx`) to the new Cobra verb/noun based syntax\n(`faas-cli xxx`), it also translates a frozen set of legacy flags (with\nthe go-style single-dash) into a GNU style double-dash.\n\nNote that some special cases are included:\n- changing the delete action to remove\n- passing the function name as a noun to remove rather than as an arg to\n`-name`\n- it also handles the legacy format where args are passed after =\n(`-name=fnname`).\n\nIf the translation results in a new set of args then a message is\ndisplayed to the user (stderr) telling warning that they are using the\ndeprecated cli syntax and also prints the new syntax command that is\nbeing executed and which they should use going forward.\n\nAny errors thrown during translation result in the command failing with\nit printing the error cause to stderr.\n\nSigned-off-by: John McCabe <john@johnmccabe.net>","distinct":true,"url":"https://api.github.com/repos/johnmccabe/faas-cli/commits/f0d5673cf5cb0ded1b97dd16fc8e14320f37b62a"},{"sha":"ea8621f181905e2372cfcfaa4810cd5cd5c810d9","author":{"name":"John McCabe","email":"febb44f0a3536761749f6c82b901d79bfa74cce8@johnmccabe.net"},"message":"Add MIT license header to new files\n\nSigned-off-by: John McCabe <john@johnmccabe.net>","distinct":true,"url":"https://api.github.com/repos/johnmccabe/faas-cli/commits/ea8621f181905e2372cfcfaa4810cd5cd5c810d9"},{"sha":"9de25af615591155958760cd82371e034e569730","author":{"name":"John McCabe","email":"febb44f0a3536761749f6c82b901d79bfa74cce8@johnmccabe.net"},"message":"Fix fetchTemplates.go package\n\nThis fixes a rebase mergup error where the package had reverted to main.\n\nSigned-off-by: John McCabe <john@johnmccabe.net>","distinct":true,"url":"https://api.github.com/repos/johnmccabe/faas-cli/commits/9de25af615591155958760cd82371e034e569730"}]}
{"actor":{"display_login":"johnmccabe"}}