Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creto #42

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ When you run `rsshell` the following commands are available to you.
- `level_up`: An RPG-style lines-of-code counter which pops up a
"level up" message when you pass a milestone in a programming
language. Run with `-h` for help.
- 'random-number': Generated a random number by simulating a fair dice roll.
Run with '-h' for help.

The following commands are expected to be added soon.

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
inc_dir = 'include'
cfg_dir = 'config'

executable_scripts = 'json-parse.py xkcd-fetch.py xkcd-search.py level_up.py'.split()
python_modules = 'src/xkcd-fetch.py src/level_up.py'.split()
executable_scripts = 'json-parse.py xkcd-fetch.py xkcd-search.py level_up.py random-number.py'.split()
python_modules = 'src/xkcd-fetch.py src/level_up.py src/random-number.py'.split()

def main ( ):
print(welcome_msg)
Expand Down
14 changes: 14 additions & 0 deletions src/random-number.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env python2

# Copyright 2013 Jonathan E. T. Means
# Licensed under the Red Spider Project License.
# See the License.txt that shipped with your copy of this software for details.


import argparse

print 4

parser = argparse.ArgumentParser(description='Number chosen by fair dice roll. '
'Guaranteed to be random.')
parser.parse_args()
3 changes: 3 additions & 0 deletions subcommands/git-creto
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
git checkout master
git pull upstream master
git checkout -b new_branch