command line interface providing useful utilities for pitt students
Branch: master
Clone or download
Pull request Compare This branch is 7 commits ahead, 2 commits behind djm158:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
src
.eslintrc
.gitignore
.jshintrc
.travis.yml
README.md
multiple_yargs_example
package-lock.json
package.json

README.md

Pitt-Cli - CLI for Pitt Students

NPM

Build Status David Status npm GitHub forks

Installation

$ [sudo] npm install -g pitt-cli

Optional Installation

In order to use print link functionality wkhtmltopdf must be installed on your system.

Linux users can run the command:

$ pitt setup

Windows/OS X users can download wkhtmltopdf from here.

Available Commands:

  • Print - send file to mobileprint@pitt.edu

    $ pitt print [args] path/to/file

    -c send file to colorprint@pitt.edu

    -l send link to printer instead of file

  • Email - send email from pitt email

    $ pitt email [-cc] "recipients" ["subject"] ["body"]

    -cc prompts for recipients to cc on the email

    • If no subject or body defined, user will be prompted for them
    • Multiple recipients must be seperated by commas ex. pitt email "recipient1@pitt.edu, recipient2@pitt.edu" "subject" "body"
  • SSH - connect to unixs.cssd.pitt.edu

    $ pitt ssh
  • THOTH - connect to thoth.cs.pitt.edu

    $ pitt thoth
  • Deploy - deploy given directory to your personal Pitt website

    $ pitt deploy "directory"
    • backups saved to ~/.html-backup directory on unixs.cssd.pitt.edu
  • setup - install wkhtmltopdf onto your system

    $ pitt setup
  • Help

    $ pitt --help

TODO:

  • integrate blackboard api
  • integrate box api
  • research any other open data pitt provides
  • unit testing