Jacob Tomlinson's profile picture Jacob Tomlinson
Home Blog Talks About

#cli
Tag

  • How to get typer to show help by default

    2 minute read #typer, #python, #cli, #quick-tips

    I love using typer for creating CLI tools in Python. It makes creating complex trees of subcommands really straightforward.

  • How to merge Kubernetes kubectl config files

    1 minute read #kubernetes, #cli, #tips

    Sometimes when working with a new Kubernetes cluster you will be given a config file to use when authenticating with the cluster. This file should be placed at ~/.kube/config. However you may already have an existing config file at that location and you need to merge them together.

  • Why is there no space in the MySQL password parameter?

    2 minute read #cli, #command-line, #database, #mysql, #terminal

    After troubleshooting a MySQL issue with a colleague we began discussing a “feature” of the MySQL command line which insists that you don’t put a space in the password parameter when using the short parameter. We both felt that it was rather inconsistent to allow the usage of -h hostname or -u username but insist on -ppassword instead of -p password. You can of course use the full parameter --password=password but as most people use the shorthand commands it just seems slightly unintuitive.