You are browsing as a guest. Sign up (or log in) to start making projects!

10h 16m 50s logged

Determinist // Devlog 3 // 2026.08.06.

Determinist v0.2.2 is here and available to install, but I certainly did not thing this would take another 10 hours…

What changed

  • I have made a preset system that can load settings so you don’t have to type them out manually. You can only use this with the regular generate command.
    • The presets command lists out all installed presets
    • Running presets save with a path added at the end will save the selected preset to your config folder
    • Adding delete after presets with the name of a preset will delete that permanently
    • Using presets default and adding the preset name will set that preset as default
  • Running --help is actually helpful now!
  • Another change is I made prompt a subcommand of generate. I ran into an issue while implementing this…

The issue

You see, Typer cannot tell the difference between a positional argument and a subcommand, meaning that it took prompt as the master_pass argument for generate. This is obviously not at all what I intended, so I needed a way to figure out how to solve this. I didn’t want to make prompt an option, since that would’ve complicated things a lot more than they needed to be. Therefore, I changed master_pass and site_name to required options, which means they need to be typed out manually. Fear not however, because if you forget to do that, Determinist now prompts you for it!

Another problem was with types, again. Typer apparently doesn’t like Union types, which I would’ve used for the preset option. What I wanted to do is make the user be able to type out the name of the preset, select one if none is entered in the command, or do everything manually. Problem: that’s 3 types: None, str and UNSET, which is basically a different spelling of None, it jut signals that the presets option was passed without an argument, as a flag. But Typer decided to ruin my day and only let me use two types, so I removed it all and made --preset a boolean, therefore a flag.

That’s about it for now, if you like the idea of having an easy way of remembering your passwords, check out Determinist!

1
64

Comments 0

No comments yet. Be the first!