![]() ![]() The crash automatically sets the exit code to 1 (bad), and a “no crash” to 0 (good). To get started, many apps don’t need asynchronous code and they only have a success or a crashed result. But now that I look smart, I’ll start at the beginning. The Basic-estĪs with all things, I want to jump in at the deep end – I actually did this before this very post – and flail around for a few hours/days (is there a difference?) and then eventually have a working app. You can read all the docs and wikis and samples in the command-line-api repository, but I am just going to jump in with some example setups. So, this is where we pull in the fancy new System.CommandLine package. ![]() We could do that ourselves… we could, but we are not crazy… at least not in that way. Look at that sweet command line app that is capable of anything!īut it does nothing yet! We still have to take that unassuming string args and turn it into some real work. One way to avoid all this is to use a big Cake script so that I can just have a single line of execution in my build.cake: No sharing between pipelines or tooling (lock in).I could write everything in the pipeline YAML, but this has 2 downsides: I also combine this with Cake to get that sweet, sweet C# scripting ability. But, I also enjoy setting up unit tests and CI/CD to prove that my code works.Īzure DevOps and GitHub Actions are powerful and allow me to pretty much do whatever I want. I enjoy writing code… Just in case you don’t know by now. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |