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

Version number in CLI #2286

Open
4 tasks done
samarulmeu opened this issue Jan 4, 2025 · 3 comments
Open
4 tasks done

Version number in CLI #2286

samarulmeu opened this issue Jan 4, 2025 · 3 comments

Comments

@samarulmeu
Copy link

The fewer issues I have to read, the more new features I will have time to implement, so I ask that you please try these things first

Description

Will will be possible to get only the version number from CLI. Something like

LosslessCut-linux-x86_64.AppImage --version

I am doing an automated check for upgrading to latest version and I need to see what version I have installed.

Thank you!

@mifi
Copy link
Owner

mifi commented Jan 7, 2025

Hi. I think you should be able to grab it from package.json file inside the AppImage if you extract it first, see https://superuser.com/questions/1301583/how-can-i-extract-files-from-an-appimage

so i'm not sure this needs a dedicated cli arg

@samarulmeu
Copy link
Author

But then I will have to extract the json file every time my script checks the installed and the available version which is time consuming and also means a lot of disk writing.

--version will just show the version number and then exits.

@mifi
Copy link
Owner

mifi commented Jan 8, 2025

probably not going to prioritise this very soon but I can leave it open to see if it becomes a popular request

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

No branches or pull requests

2 participants