shkm / freCLIxir

:hourglass_flowing_sand: Freckle v2 CLI in Elixir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Freclixir

A little Freckle CLI, written in elixir.

Installation

git clone https://github.com/shkm/freCLIxir.git
cd freCLIxir
mix deps.get
mix escript.build
# copy freclixir somewhere in your path

You'll also need a token. You can get one from:

Your freckle domain
|> Connected Apps
|> Freckle API
|> Personal Access Tokens
|> Settings

Pop that into ~/.freclixir/token and keep it secret (keep it safe).

Commands

TODO: write a decent help. For now:

  • freclixir projects list
  • freclixir timers list
  • freclixir timers start [project_id_or_name]

TODO

A lot. Short-term:

  • Start timer by fuzzy-finding project name
  • Project aliases

Why?

I wrote a little Ruby CLI and API client a while ago. These started working weirdly, and I figured I could use some more Elixir practice, so let's rebuild in Elixir. And let's keep it simple this time.

As such, you'll probably see some weird code. I'm in it to learn, so please point out any weirdness or send a PR if you like.

About

:hourglass_flowing_sand: Freckle v2 CLI in Elixir


Languages

Language:Elixir 100.0%