tgug

command module
v0.0.0-...-e7ff5b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 16 Imported by: 0

README

TGUG - Typora-Ghost image Uploader in Go

In any chance if you want to know why I developed this, check this out. (It's written in Korean.)

Installation

tgug will store authentication file auth.json in your home directory, i.e. ~/.tgug for mac and linux. If you start the program for the first time, it promts you to type information of your Ghost blog.

  • Domain
  • Username (email)
  • Password

Clone the repo and go to the directory.

git clone https://github.com/Indosaram/tgug
cd tgug
MacOS and Linux

This command will install binary in $GOBIN directory. If you haven't set your $GOBIN, it will install in ~/go/bin.

# make a directory reserved for tgug and install in GOBIN path
sudo mkdir ~/.tgug
GOBIN=/usr/local/bin go install
Windows

In Windows, you need to .tgug folder in your home directory. (i.e. C:\Users\USERNAME\.tgug) Next, type following command in shell.

go install

Usage

Check out this page for setup tgug for your Typora.

For command line usage, you can use this by typing,

tgug -f=image1.jpg,image2.png,...

TODOs

  • Documentation
  • Exception control
    • authentication info with Regex
    • Invalid file path
  • Encryption of auth.json file
  • Seamless integration with Typora
    • Script for automatic integration

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL