This page looks best with JavaScript enabled

A Command Line Interface!

 ·  ☕ 2 min read

Larder is a bookmarking tool for developers. If you’re like me an have a plethora of random bookmarks, Larder makes the the process of organizing these bookmarks simple. Larder supports categorizing and tagging your bookmarks. Categorizing is done by placing bookmarks in an organised set of folders, allow you to annotate each bookmark with specific search terms. Later on when you need it, you can search your bookmarks by tags you’ve used, it’s title, or it’s original URL.

This tool also supports synchronizing your GitHub stars too. So, you can track updates from projects that you starred on GitHub. If you want to bookmark something automatically, Larder extension is available for browsers, Android, and there’s also an API.

I decided to make a robust, easy to use command line interface for Larder. I did this mainly because I have a 2012 Macbook Pro with 4GB of RAM that really cannot handle any more browser extensions. I also did this because I know there’s a lot of folk who live in their terminals and detest browser extensions.

The Larder CLI

Okay so first off, I am aware a few CLI’s for Larder exist, but most of these are Ruby or Node.js based. Go is much more performant and because of this, the Larder CLI, which you can find here is written in Go.

The tool leverages the Cobra library. Cobra has been used to build some of the best CLI’s around, being utilized in projects such Kubernetes, Hugo, etcd, Docker and rkt, to name but a few.

The Larder CLI allows for the viewing, adding, removing of a user’s folders and/or bookmarks.

Along with this, the tool offers a robust search functionality. The user provides a string of search terms delimited by commas. For example: “texas,bbq”. This will search through all folders, for names or tags containing those terms.

The Unique Selling Point

What really makes this new Larder CLI stand out is the ability to refresh your access token. Tokens expire in a month and can be refreshed for a new access token at any time, invalidating the original access and refresh tokens.

This built in functionality does not exist in alternatives to this Larder CLI. This process is automated so the user can continuously use the Larder CLI without having to manually remove and add new access tokens.

Who doesn’t love a little bit of automation :D

You can check out Larder on Github.

James McDermott
James McDermott
Software/Systems Engineer