Top Level Namespace

Defined Under Namespace

Modules: Copernicium Classes: String

Constant Summary collapse

VERSION =

user interface module - parse and execute commands integrates all modules, central module

"0.3"
TOP_BANNER =

create large constant strings

'Copernicium (cn) - simple DVCS'.ugn
HELP_BANNER =
<<-EOS
#{TOP_BANNER}

#{'Starting out:'.grn}
    init - create a new repository
    status - check repo status
    history - show repo commits
    help - show more commands
EOS
COMMAND_BANNER =
<<-EOS
#{HELP_BANNER}
#{'Commands'.grn}
    commit [files] <-m message>
    branch [opt] [branch]
      -r | rename current branch
      -c | create a new branch
      -d | delete a branch
    checkout <commit id> [files]
    clean [files] [commit/branch]
    clone <user> <remote url>
    push <user> <remote url>
    pull <user> <remote url>
    merge <branch>

#{'Options'.grn}
    -v: print version
    -h: show help

Note: [optional] <required>

EOS
IN_REPO_WARNING =
<<-EOS
You are currently in a Copernicium repo...
`cn init` is not valid here!
EOS
NO_REPO_WARNING =
<<-EOS
You are not currently in a Copernicium repo...
Run `cn init` to create one!
EOS
AUTHOR_BANNER =
<<-EOS
  Jeremy Warner
  Luisa Neves
  Chris Wong
  Xiang-Ru Lian
  Logan Gittelson
  Linfeng Song
  Qiguang Liu
  Frank Tamburrino
  Ethan Johnson
EOS

Method Summary

Methods included from Copernicium::PushPull

UICommandParser, connect, connection_failure, fetch, pclone, ppull, ppush, transfer