Giter VIP home page Giter VIP logo

pushoo-cli's Introduction

pushoo-cli

NPM

A command line tool with Pushoo.js pushes multiple platform messages.

Build Status license node NPM version Release Date npm download

Prerequisite

Installation

npm i pushoo-cli -g

Usage

# Show help
pushoo -h

# Read the configuration from the default configuration file and push the message
pushoo "This is the content"

# Read the configuration from the default configuration file, and push the message
pushoo -C "This is the content"

# Specify the config file, and push the message
pushoo -c ./pushoo.yml -C "This is the content"

# Specify the platform and token, and push the message
pushoo -P wecom -K wecom_token -C "This is the content"

# Specify the platform and token, and push the message
pushoo -P wecom -K wecom_token -C "This is the content" -T "This is the title"
#

After installing it, run pushoo --help without arguments to see list of options:

pushoo-cli - a command line tool with Pushoo.js pushes multiple platform messages.

Usage:
  pushoo [options]
  pushoo --help
  pushoo --version
  pushoo "hello world"
  pushoo -C "hello world"
  pushoo -c ./pushoo.yml -C "hello world"
  pushoo -P wecom -K wecom_token -C "hello world"

Commands:
  config                              Create default configuration file.

Options:
  -h, --help                          Shows help.
  -d, --debug                         Show debugging information.
  -v, --version                       Print version of pushoo-cli.
  -c, --config                        Optional, Specify the configuration file path.
  -C, --content                       Required, The push content of the Markdown format.
  -P, --platforms                     Optional, List of platform name(more: https://github.com/imaegoo/pushoo), such as: wecom, dingtalk,feishu.
  -K, --tokens                        Optional, List of token(more: https://github.com/imaegoo/pushoo), such as: wecom_token, dingtalk_token,feishu_token.
  -T, --title                         Optional, message title.
  -O, --options                       Optional, For some additional configuration when pushing, Json string.

  By default, pushoo If there is no corresponding parameter, read the configuration from the local configuration file to send.

  More information about the pushoo-cli can be found at: https://github.com/funnyzak/pushoo-cli, and the pushoo can be found at: https://github.com/imaegoo/pushoo.

Preview

show help push

Configuration

Create default configuration file, run:

pushoo config

or you can create a configuration file yourself, the configuration file is a yaml file, the configuration file is as follows:

platforms: ifttt, bark
tokens: hello-QUp#push_origin,3TuQzNFJVL7G
title: ""
content: ""

Reference

Contribution

If you have any questions or suggestions, please feel free to open an issue or pull request.

License

MIT License © 2022 funnyzak

pushoo-cli's People

Contributors

dependabot[bot] avatar funnyzak avatar imgbotapp avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 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.