Skip to content

Commit

Permalink
updated v1.0.1
Browse files Browse the repository at this point in the history
- added readme helper to tool
  • Loading branch information
samapriya committed Oct 9, 2023
1 parent 74bd75c commit 096f956
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cogee/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = "Samapriya Roy"
__email__ = "[email protected]"
__version__ = "1.0.0"
__version__ = "1.0.1"
23 changes: 23 additions & 0 deletions cogee/cogee.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,24 @@ def cogee_version():

cogee_version()

# Go to the readMe
def readme():
try:
a = webbrowser.open(
"https://cogee.geetools.xyz", new=2
)
if a == False:
print("Your setup does not have a monitor to display the webpage")
print(
" Go to {}".format(
"https://cogee.geetools.xyz"
)
)
except Exception as e:
print(e)

def read_from_parser(args):
readme()

def init(project):
"""
Expand Down Expand Up @@ -361,6 +379,11 @@ def main(args=None):
)
subparsers = parser.add_subparsers()

parser_read = subparsers.add_parser(
"readme", help="Go the web based cogee readme page"
)
parser_read.set_defaults(func=read_from_parser)

parser_init = subparsers.add_parser("init", help="GEE project auth")
required_named = parser_init.add_argument_group("Required named arguments.")
required_named.add_argument(
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

### v1.0.1
- added readme helper to tool

### v1.0.0
- Major release that includes better tool definitions
- Now includes better error handling and stability
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def readme():

setuptools.setup(
name="cogee",
version="1.0.0",
version="1.0.1",
packages=setuptools.find_packages(),
url="https://github.com/samapriya/cogee",
install_requires=[
Expand Down

0 comments on commit 096f956

Please sign in to comment.