CLI tool for mataroa.blog

  • By freire
  • Last update: Dec 16, 2022
  • Comments: 2

mata

builds.sr.ht status github actions status

mata is CLI tool for mataroa.blog.

Usage

Run mata init to get started. Read the man page to learn about all commands.

Documentation

Also available as man pages:

Building

Dependencies (not needed for Nix users):

  • Go
  • Pandoc (optional, for man pages)

From Source

For end users, a Makefile is provided:

make
make install

From Nix

Dependencies:

  • Nix 2.4 or later

You can build and run from your machine with the following:

nix run sourcehut:~glorifiedgluer/mata

Contributing

You can find me on IRC: #mdzk on Libera Chat.

License

MIT, see LICENSE.

Copyright (C) 2022 Victor Freire

Download

mata.zip

Comments(2)

  • 1

    refactor: improve cli ux

    Motivation

    This improves the UX a little bit as the user now has some idea on how to use the CLI on error.

    Evidences

    Error: accepts 1 arg(s), received 0
    Usage:
      mata posts create [FILENAME] [flags]
    
    Flags:
      -h, --help   help for create
    
    2022/09/28 21:47:08 error running application: accepts 1 arg(s), received 0
    exit status 1
    

    Linked Issues/PRs/Discussions

    #4

  • 2

    feat: introduce `posts sync` command

    Motivation

    This PR introduces the posts sync subcommand, the idea being a simple way to sync all your posts with the platform with a single command.

    Linked Issues/PRs/Discussions

    #2