File tree 5 files changed +28
-9
lines changed
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';
3
3
class MetaInfo {
4
4
MetaInfo ._();
5
5
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" ;
7
8
static const daemonDownloadUrl =
8
9
"https://github.com/omegaui/cliptopia_daemon/raw/master/cliptopia-daemon" ;
9
10
static final daemonDownloadedBinaryPath = combineHomePath ([
Original file line number Diff line number Diff line change @@ -4,19 +4,26 @@ class Usage {
4
4
static void logUsage ({describe = true }) {
5
5
if (describe) {
6
6
stdout.writeln ("The state-of-the-art clipboard manager." );
7
+ stdout.writeln (
8
+ "See Project on GitHub: https://github.com/omegaui/cliptopia" );
7
9
stdout.writeln ();
8
10
}
9
11
stdout.writeln ("Usage: cliptopia [OPTIONS]" );
10
12
stdout.writeln ("where OPTIONS could be one of these:" );
11
13
stdout.writeln ();
12
- stdout.writeln ("\t --debug Enable printing logs to the terminal" );
13
14
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" );
18
16
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" );
21
28
}
22
29
}
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ class ArgumentHandler {
8
8
'--silent' ,
9
9
'--power' ,
10
10
'--version' ,
11
+ '--daemon-compatible-version' ,
11
12
'--help' ,
12
13
];
13
14
@@ -23,6 +24,10 @@ class ArgumentHandler {
23
24
return _arguments.contains ('--version' );
24
25
}
25
26
27
+ static bool shouldShowDaemonCompatibleVersion () {
28
+ return _arguments.contains ('--daemon-compatible-version' );
29
+ }
30
+
26
31
static bool isDebugMode () {
27
32
return _arguments.contains ('--debug' );
28
33
}
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ void main(List<String> arguments) {
42
42
return ;
43
43
}
44
44
45
+ if (ArgumentHandler .shouldShowDaemonCompatibleVersion ()) {
46
+ stdout.writeln (
47
+ "Compatible Cliptopia Daemon version ${MetaInfo .daemonCompatibleVersion }" );
48
+ return ;
49
+ }
50
+
45
51
WidgetsFlutterBinding .ensureInitialized ();
46
52
47
53
// 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.
3
3
4
4
publish_to : ' none' # Remove this line if you wish to publish to pub.dev
5
5
6
- version : 1.0.0+2
6
+ version : 1.0.0+3
7
7
8
8
environment :
9
9
sdk : ' >=3.1.4 <4.0.0'
You can’t perform that action at this time.
0 commit comments