Skip to content

Commit

Permalink
add version command
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Aug 26, 2021
1 parent e11a3c8 commit 1ac4360
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bescli/bescli.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
# this is for the case in which we are calling bescli from besapi
import besapi

from besapi import __version__


class BESCLInterface(Cmd):
"""BigFix command-line interface processor."""
Expand Down Expand Up @@ -293,6 +295,10 @@ def do_query(self, statement):
rel_result = self.bes_conn.session_relevance_string(rel_text)
self.poutput(rel_result)

def do_version(self, statement):
"""output version of besapi"""
print(__version__)


def main():
"""Run the command loop if invoked"""
Expand Down

0 comments on commit 1ac4360

Please sign in to comment.