Skip to content

hallindavid/wordstree-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

WordsTree Sync

Usage

sh wtsync.sh {action} {document_id} {file}"

Important:

  1. ensure ~/.wordstree exists
  2. ensure token is a line

Start

First, you need a token. For that, you can run:

sh wtsync.sh

That will create ~/.wordstree and prompt for you to add your credentials.

Open file for presentation

Still ugly

sh wtsync.sh pull {document-id} --show

Download document as pure markdown content

sh wtsync.sh pull {document-id} {file}

Download document as JSON

sh wtsync.sh pull {document-id} {file} --markdown

TODO

  • check that we have 3 parameters
  • check that we have a valid file location
  • ensure valid token & auth check
  • if not, then ask for email & password
  • ensure valid document id

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages