CLI Tool Beginnings

I'm really tired so today is going to be a very short session.

I will start work on the CLI tool.

The first step is setting up cobra and accepting commands. This will probably be enough for now.

devjourney upload <file> [--api-key <key>]

I ended up finishing a huge part of the command. Using cobra was pretty straightforward. I can upload the files and get links.

Links aren't really working on my local setup, so I'll have to debug that. Probably something to do with the Docker mounts.

alt text

I can also see that the api client access token is expiring after some time and isn't getting refreshed. I'll have to fix that as well.