When I call the main function with no subcommands and no arguments, my help_text from the text file outputs, and then like 2-3 additional lines of boiler plate I can't seem to get rid of. ![]() Lastly, I have set up a base case to display the help text whenever no subcommands are given. ![]() Before I reworked the help text, I had help text for each individual subcommand by using "help=" but now those are all blank. Only one of those subparsers has any additional arguments (one positional, one optional). Then I create subparsers (4 of them and then a base case) to create subcommands. I read in my help text file, set it to a string help_text, and then set "usage=help_text" on the parser. Here is the basics of how my program is broken down: But my boss isn't satisfied with the default help text, so he is having me write up the full usage/help text in a text file and just display the entire file.įor some reason, in a certain case, its outputting the text twice. Originally I had tried to leverage argparse's built in help text behavior. I created a command line interface with argparse. Our next section will be run as the new user we just created and will contain things we want to install that wouldn't or can't be installed with a package manager.Įxamples would include: dotfiles, vim-plugins, zsh-plugins, fzf, github cli, tmuxinator, among many others.After an hour googling, I can't find anybody who has had anything resembling this issue besides myself. ⚠️ gpg-agent and ssh-agent passthrough is still a work in progress. # list of Docker images to use as base name for tags images: | ghcr.io/$ name: Docker meta id: meta uses: crazy-max/ with: name: Checkout the repo uses: actions/ Name: Push docker image to container registry runs-on: ubuntu-latest steps: We want our build process to trigger anytime a change to main is detected.Īdd the following lines to publish-docker-image.yml github/workflows/publish-docker-image.yml in your editor of choiceįirst, we need to name the work flow and define our trigger. github/workflows called publish-docker-image.yml github/workflows at the root of your userspace repository This is a longer tutorial, and we want to make sure that we are building successfully as we mosey along. The first thing we are going to do is configure a build process using GitHub Actions.
0 Comments
Leave a Reply. |