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

Show pyapi version #7

Closed
olofhagsand opened this issue Feb 14, 2024 · 3 comments
Closed

Show pyapi version #7

olofhagsand opened this issue Feb 14, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@olofhagsand
Copy link
Member

Show pyapi version.
Both by (1) directly invoking the program; and (2) a method with which the clixon controller can fetch the version.
Proposal: -V command-line option show version and quits (same as clixon).

Reference: This is how versions are shown in the controller, but lacks pyapi version:

# op show version
Controller: 	0.3.0.PRE
Clixon: 	6.6.0.PRE
CLIgen: 	6.6.0.PRE

See also: clicon/clixon-controller#101

@olofhagsand olofhagsand added the enhancement New feature or request label Feb 14, 2024
@olofhagsand olofhagsand changed the title Show versionShow pyapi version Show pyapi version Feb 14, 2024
@YotaYota
Copy link
Contributor

I can fix this. I suggest that we merge #6 first since it changes the usage from getops to argsparse in order to parse CLI arguments.

I got something in the pipe for this

@krihal
Copy link
Collaborator

krihal commented Feb 23, 2024

$ clixon_server.py -V
1.0.0-PRE

@krihal krihal closed this as completed Feb 23, 2024
@krihal
Copy link
Collaborator

krihal commented Feb 23, 2024

Added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants