File tree Expand file tree Collapse file tree 5 files changed +28
-9
lines changed
Expand file tree Collapse file tree 5 files changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import 'package:cliptopia/core/utils.dart';
33class MetaInfo {
44 MetaInfo ._();
55
6- static String get version => "v1.0.0+2" ;
6+ static String get version => "v1.0.0+3" ;
7+ static String get daemonCompatibleVersion => "v0.0.3" ;
78 static const daemonDownloadUrl =
89 "https://github.com/omegaui/cliptopia_daemon/raw/master/cliptopia-daemon" ;
910 static final daemonDownloadedBinaryPath = combineHomePath ([
Original file line number Diff line number Diff line change @@ -4,19 +4,26 @@ class Usage {
44 static void logUsage ({describe = true }) {
55 if (describe) {
66 stdout.writeln ("The state-of-the-art clipboard manager." );
7+ stdout.writeln (
8+ "See Project on GitHub: https://github.com/omegaui/cliptopia" );
79 stdout.writeln ();
810 }
911 stdout.writeln ("Usage: cliptopia [OPTIONS]" );
1012 stdout.writeln ("where OPTIONS could be one of these:" );
1113 stdout.writeln ();
12- stdout.writeln ("\t --debug Enable printing logs to the terminal" );
1314 stdout.writeln (
14- "\t --silent Closes the GUI once an insertion choice is made" );
15- stdout.writeln ("\t --version Prints program version" );
16- stdout
17- .writeln ("\t --silent Closes the app once you make a selection" );
15+ "\t --debug Enable printing logs to the terminal" );
1816 stdout.writeln (
19- "\t --power An Effective Mode can be triggered with Super + V" );
20- stdout.writeln ("\t --help Prints this help message" );
17+ "\t --silent Closes the GUI once an insertion choice is made" );
18+ stdout.writeln (
19+ "\t --version Prints program version" );
20+ stdout.writeln (
21+ "\t --silent Closes the app once you make a selection" );
22+ stdout.writeln (
23+ "\t --power An Effective Mode can be triggered with Super + V" );
24+ stdout.writeln (
25+ "\t --daemon-compatible-version Prints the required daemon version" );
26+ stdout.writeln (
27+ "\t --help Prints this help message" );
2128 }
2229}
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ class ArgumentHandler {
88 '--silent' ,
99 '--power' ,
1010 '--version' ,
11+ '--daemon-compatible-version' ,
1112 '--help' ,
1213 ];
1314
@@ -23,6 +24,10 @@ class ArgumentHandler {
2324 return _arguments.contains ('--version' );
2425 }
2526
27+ static bool shouldShowDaemonCompatibleVersion () {
28+ return _arguments.contains ('--daemon-compatible-version' );
29+ }
30+
2631 static bool isDebugMode () {
2732 return _arguments.contains ('--debug' );
2833 }
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ void main(List<String> arguments) {
4242 return ;
4343 }
4444
45+ if (ArgumentHandler .shouldShowDaemonCompatibleVersion ()) {
46+ stdout.writeln (
47+ "Compatible Cliptopia Daemon version ${MetaInfo .daemonCompatibleVersion }" );
48+ return ;
49+ }
50+
4551 WidgetsFlutterBinding .ensureInitialized ();
4652
4753 // Initializing App Storage
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: The state-of-the-art clipboard manager.
33
44publish_to : ' none' # Remove this line if you wish to publish to pub.dev
55
6- version : 1.0.0+2
6+ version : 1.0.0+3
77
88environment :
99 sdk : ' >=3.1.4 <4.0.0'
You can’t perform that action at this time.
0 commit comments