Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/geekdada/flomo-cli

A CLI tool for flomo.
https://github.com/geekdada/flomo-cli

flomo

Last synced: about 2 months ago
JSON representation

A CLI tool for flomo.

Awesome Lists containing this project

README

        

# flomo-cli

![Go](https://github.com/geekdada/flomo-cli/workflows/Go/badge.svg)
[![codecov](https://codecov.io/gh/geekdada/flomo-cli/branch/master/graph/badge.svg?token=FJ3Y2ZB8YS)](https://codecov.io/gh/geekdada/flomo-cli)

A CLI tool for [flomo](https://flomoapp.com/register2/?Mzk3).

## 📥 安装

```bash
# 支持在不同平台运行
curl -sf https://gobinaries.com/geekdada/flomo-cli | sh
```

**或者** 在 [Releases](https://github.com/geekdada/flomo-cli/releases) 页面下载对应的二进制文件。目前有:

- `flomo-cli-darwin-amd64.gz`
- `flomo-cli-freebsd-386.gz`
- `flomo-cli-freebsd-amd64.gz`
- `flomo-cli-linux-386.gz`
- `flomo-cli-linux-amd64.gz`
- `flomo-cli-linux-armv5.gz`
- `flomo-cli-linux-armv6.gz`
- `flomo-cli-linux-armv7.gz`
- `flomo-cli-linux-armv8.gz`
- `flomo-cli-windows-386.zip`
- `flomo-cli-windows-amd64.zip`
- `flomo-cli-windows-arm32v7.zip`

macOS 系统请使用 `flomo-cli-darwin-amd64.gz`。

## 👉 使用

### 添加一条新的墨

```bash
$ flomo-cli new --api "一条新的墨"
```

### 添加一条带标签的墨

```bash
$ flomo-cli new --api --tag "随手记" "一条新的墨"
```

**🔮 效果**

![CleanShot 2020-12-24 at [email protected]](https://i.loli.net/2020/12/24/g3v7c6fwOKyauRT.png)

### 使用环境变量来指定 API

```bash
$ export FLOMO_API=
$ flomo-cli new --tag "随手记" "一条新的墨"
```

### 将文本文件添加到浮墨

```bash
$ cat memo.txt | flomo-cli new --tag "Quote"
```

## LICENCE

[MIT](./LICENSE)