Make Link with Markdown Format

Overview

ml -- Make Link with Markdown Format

check vulns lint status lint status GitHub license GitHub release

This package is required Go 1.16 or later.

Build and Install

$ go install github.com/spiegel-im-spiegel/[email protected]

Binaries

See latest release.

Usage

$ ml -h
Usage:
  ml [flags] [URL [URL]...]

Flags:
      --debug          for debug
  -h, --help           help for ml
  -i, --interactive    interactive mode
  -l, --log int        history log size
  -s, --style string   link style [markdown|wiki|html|csv|json] (default "markdown")
  -v, --version        output version of ml
$ ml https://git.io/vFR5M
[GitHub - spiegel-im-spiegel/ml: Make Link with Markdown Format](https://github.com/spiegel-im-spiegel/ml)
$ echo https://git.io/vFR5M | ml
[GitHub - spiegel-im-spiegel/ml: Make Link with Markdown Format](https://github.com/spiegel-im-spiegel/ml)

Support Other Styles

$ ml -s html https://git.io/vFR5M
<a href="https://github.com/spiegel-im-spiegel/ml">GitHub - spiegel-im-spiegel/ml: Make Link with Markdown Format</a>

Support Styles: markdown, wiki, html, csv, json

Interactive Mode

$ ml -i
Input 'q' or 'quit' to stop
ml> https://git.io/vFR5M
[GitHub - spiegel-im-spiegel/ml: Make Link with Markdown Format](https://github.com/spiegel-im-spiegel/ml)
ml>

With Go Codes

package main

import (
    "context"
    "fmt"
    "io"
    "os"

    "github.com/spiegel-im-spiegel/ml/makelink"
)

func main() {
    lnk, err := makelink.New(context.Background(), "https://git.io/vFR5M")
    if err != nil {
        fmt.Fprintln(os.Stderr, err)
        return
    }
    _, _ = io.Copy(os.Stdout, lnk.Encode(makelink.StyleMarkdown))
    // Output:
    // [GitHub - spiegel-im-spiegel/ml: Make Link with Markdown Format](https://github.com/spiegel-im-spiegel/ml)
}

Modules Requirement Graph

dependency.png

Releases(v0.6.1)
Owner
Spiegel
A programmer for hire.
Spiegel
Simple command line tool to control TP-Link HS100 and HS110 Devices

tplink-hs1x-cli A simple app to control TPLink HS100 and HS110 devices. Sometimes it is just easier to use a simple cli tool to turn the lights on and

null 0 Nov 9, 2021
GitHub CLI extension to preview your markdown similar to the style of GitHub.

gh markdown-preview GitHub CLI extension to preview your markdown similar to the style of GitHub gh markdown-preview is a GitHub CLI extension to prev

Yusuke Wada 132 Jul 29, 2022
A simple CLI app to take notes daily on markdown file

A simple CLI app to take notes daily on markdown file

Pradeep Khileri 62 Jul 29, 2022
Stonks is a terminal based stock visualizer and tracker that displays realtime stocks in graph format in a terminal.

Stonks is a terminal based stock visualizer and tracker. Installation Requirements: golang >= 1.13 Manual Clone the repo Run make && make install Pack

Eric Moynihan 514 Aug 1, 2022
PretGO - asic cli for format json,html and xml!

PretGO So basic cli for format json,html and xml! Table of contents Screenshots Setup Status Contact Screenshots Setup First clone project git clone h

Murat Mirgün ERCAN 31 Jun 25, 2022
📝 Easily format yaml files on terminal or your editor

YAMLFMT A simple and extensible yaml formatter. Installation go install github.com/UltiRequiem/[email protected] Make sure your $PATH includes the $GOPAT

Eliaz Bobadilla 26 Jul 28, 2022
Command line tool for processing client transaction data in CSV format

command line tool for processing client transaction data in CSV format. thank you for looking! build instructions: $ git clone https://github.com/lnit

Luke Nittmann 0 Oct 29, 2021
Generate fake logs in different format

Fake logs This application don't do anything but generating random logs! How to use it Build locally $ git clone https://github.com/saphoooo/fake-logs

null 0 Jan 2, 2022
Command line tool for time tracking in a human-readable file format.

klog klog is a plain-text file format and a command line tool for time tracking. ?? Documentation – Learn how to use klog ?? Download – Get the latest

Jan Heuermann 360 Jul 27, 2022
Golang parser for Intuit Interchange Format (.IIF) files

Intuit Interchange Format (.IIF) Parser Install go get github.com/joshuaslate/iif Usage iiifile, err := os.Open("./transactions.iif") if err != nil {

Josh Slate 0 Jan 15, 2022
Determine the end-of-line format, tabs, bom, and nul characters

eol Determine the end-of-line format, tabs, bom, and nul characters Pass wildcard filename globs on the command line Download Binaries for Windows, Ma

John Taylor 0 Jan 16, 2022
Determine the end-of-line format, tabs, bom, and nul characters

chars Determine the end-of-line format, tabs, bom, and nul characters Download Binaries for Windows, MacOS, Linux and FreeBSD are provided on the rele

John Taylor 5 Feb 20, 2022
A simple command line functionality to convert your Kaspersky Password Manager exported file to CSV format

A simple command line functionality to convert your Kaspersky Password Manager exported file to CSV format

Vlad Plaiasu 7 Apr 20, 2022
archy is an static binary to determine current kernel and machine architecture, with backwards compatible flags to uname, and offers alternative output format of Go runtime (i.e. GOOS, GOARCH).

archy archy is an simple binary to determine current kernel and machine architecture, which wraps uname and alternatively can read from Go runtime std

xargs-dev 3 Mar 18, 2022
JOB, make your short-term command as a long-term job. 将命令行规划成任务的工具

job make your short-term command as a long-term job Install Shell Install (Linux & MacOS) # binary will be $(go env GOPATH)/bin/job $: curl -sfL https

JayL 118 Jul 24, 2022
An easy to use menu structure for cli applications that prompts users to make choices.

WMenu Package wmenu creates menus for cli programs. It uses wlog for its interface with the command line. It uses os.Stdin, os.Stdout, and os.Stderr w

Will Dixon 168 Jul 29, 2022
Make Highly Customized Boxes for your CLI

Box CLI Maker ?? Box CLI Maker is a Highly Customized Terminal Box Creator. Features Make Terminal Box in 8️⃣ inbuilt different styles 16 Inbuilt Colo

Swastik Baranwal 222 Jul 30, 2022
Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.

asciigraph Go package to make lightweight ASCII line graphs ╭┈╯. Installation go get github.com/guptarohit/asciigraph Usage Basic graph package main

Rohit Gupta 2k Aug 5, 2022
Make any Go function into a API (FaaS)

faas Make any (Go) function into an API with one HTTP request. This is a FaaS: functions as a service. But, in actuality, its more of a FaaSSS: functi

Zack 91 Jun 4, 2022