Replies: 2 comments
-
Adding piece of puzzle in here. Azure's yaml format can be parsed using
Theoretically it's possible to use tt4 templates to generate C# code which would be used for command line arguments parsing. |
Beta Was this translation helpful? Give feedback.
0 replies
-
And using tt4 template it's possible to generate command line arguments for your tool. Add as
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
cake.frosten is possible to use as it's own command line builder executable. (cli)
it's also possible to use cake.frosten from ci - for example github actions or azure build pipelines. (ci)
sometimes getting information from cli is not suffient - it's also possible that when you run command locally -
you can get same information from local environment - for example from git / git branch name.
typically if you want like simplified and smooth flow - maybe use 2 if it's ci, use 3 if 1 is not provided, and then finally use 1 if specified.
For example with git branch it would work like this:
Theoretically - I would prefer to generalize this even more. Let's say that I want to define parameter in ci, and then it would automatically create command line argument for cli tool and then I could get same kind of system out of box.
One approach - if for example we have all parameters defined in .yml file (also depends on ci build system) - maybe there should be automatic yaml parser, which somehow automatically maps yaml parameter to command line argument.
3 is not always available and not for all parameters / arguments, so it can be up to parameter whether it's autodetected or not.
3 is available for example for git url, which in theory can be even parsed further, which in a turn can be used with AzureDevOpsBuild (for example).
(Like get "my last successful" build, etc...)
Maybe there should be some sort of API to simplify 1-2-3 mapping ?
Beta Was this translation helpful? Give feedback.
All reactions