Support for custom Exit Code from Iced application #1889
mayankjoshii
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there an existing issue for this?
Is this issue related to iced?
What happened?
I have a UI application written in iced, which performs various operation. To launch the UI I'm using run() method:
UpdateDriver::run(Settings::default())
and currently this returns the exit code of typeiced::Result
, but I want the application to return custom exit code of typeu8
based on the operation performed. Ex: 1(success), 2(failure), 3(reboot) etc.I need help on how to do that.
Current WorkFlow
Main Function:
My application runs in both CLI and UI mode, form CLI mode I'm directly returning the
u8
type exit code, need to implement that for UI mode too.What is the expected behavior?
Expectation :
Version
master
Operative System
Windows
Do you have any log output?
No response
Beta Was this translation helpful? Give feedback.
All reactions