Skip to content

Commit

Permalink
[Fixes #60] Task: Update install method to use pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Wallschlaeger committed Nov 10, 2024
1 parent 8288f95 commit 37c97d2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/geonoderest/geonodectl.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,34 @@ def geonodectl():
type=str, dest="exec_id", help="exec_id of executionrequest to describe ..."
)

############################
# KEYWORD ARGUMENT PARSING #
############################
keywords = subparsers.add_parser("keywords", help="(Hierarchical) keyword commands")
keywords_subparsers = keywords.add_subparsers(
help="geonodectl keywords commands", dest="subcommand", required=True
)

# LIST
keywords_list = keywords_subparsers.add_parser("list", help="list keywords")
keywords_list.add_argument(
"--filter",
nargs="*",
action=kwargs_append_action,
dest="filter",
type=str,
help="filter keywords requests by key value pairs. E.g. --filter name=soil",
)

# DESCRIBE
keywords_describe = keywords_subparsers.add_parser(
"describe", help="get thesaurikeyword details"
)
# not fully clean to use pk here, as it is actually keyword but for now ...
keywords_describe.add_argument(
type=str, dest="pk", help="keyword of keywords to describe ..."
)

#####################################
# THESAURI KEYWORD ARGUMENT PARSING #
#####################################
Expand Down

0 comments on commit 37c97d2

Please sign in to comment.