Giter Site home page Giter Site logo

canvas-cli's Introduction

Canvas CLI (Deprecated)

DEPRECATED This was built on an our very first private API. We'll have a CLI sooner or later but aren't quite ready with one, yet.

Usage:
	canvas new [<filename>] [--collection=COLLECTION]
	canvas list [--collection=COLLECTION]
	canvas pull <id> [--md | --json | --html]
	canvas delete <id>
	canvas account
	canvas login
	canvas env
	canvas -h | --help
	canvas --version

Options:
  --md          Format Canvas as markdown
  --json        Format Canvas as json
  --html        Format Canvas as html
  -h, --help    Show this screen.
  --version     Show version.

Installation

OS X - Download the binary using github releases.

Usage

canvas new

Create a new canvas and output the URL to STDOUT.

Examples:

Creating a blank document

$ canvas new
https://beta.usecanvas.com/csquared/-/d6ffa6aa-63d1-44b0-8d99-07d25a9db115

Creating from a file

$ canvas new README.md
https://beta.usecanvas.com/csquared/-/dbad8e34-0b2b-4ce7-80b6-7dc395b6a28e

Creating from STDIN

$ cat README.md | canvas new
https://beta.usecanvas.com/csquared/-/fb8f489a-ecba-47fa-840c-325cf13d7885

Create and open in a browser

$ canvas new | xargs open

canvas pull

Output document in format to STDOUT

$ canvas pull fb8f489a-ecba-47fa-840c-325cf13d7885
# Canvas CLI

...

Creating HTML

$ npm install -g marked
$ canvas pull fb8f489a-ecba-47fa-840c-325cf13d7885 | marked
<h1 id="canvas-cli">Canvas CLI</h1>

...

note: this behavior will soon be replaced with the --format flag.

Development

Build

./build.sh

Development

go run *.go

canvas-cli's People

Contributors

csquared avatar jclem avatar ddollar avatar

Watchers

Matt Petty avatar James Cloos 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.