Coder Social home page Coder Social logo

pst's Introduction

pst

A simple command-line tool to publish short posts to Micro.blog.

This is partially a personal project to learn Rust, but also to build something that I will use myself. If other people find it useful in any capacity, then that is a bonus.

installation

cargo

You can install pst directly from cargo. Just use the following command:

cargo install pst

homebrew

pst is available from homebrew, however you'll need to use a custom tap. Although it's still pretty easy:

brew tap chrishannah/pst
brew install pst

usage

Using pst is pretty simple.

The command is pst, you then need to say if it's a draft or not, by using draft or post, and then you write your micro post.

So to write a draft post, you would do something like this:

pst draft "Hello, world. This is a draft post"

Or to publish it directly:

pst post "only losers draft posts"

Keep in mind, that if you use anything other than draft or post, it will default to a draft post.

configuration

pst is configured using a rather simple json file, stored in your home directory, under .config/pst/config.json. It only needs to contain your Micro.blog app token in the following format:

{
    "token": "micro.blog token"
}

pst's People

Contributors

chrishannah avatar

Stargazers

Johannes Ebeling avatar David Blue avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.