Skip to content

Commit

Permalink
⚡ Bumping version to v1.0.0+3-beta.
Browse files Browse the repository at this point in the history
  • Loading branch information
omegaui committed Dec 23, 2023
1 parent 7c3b502 commit 6b61f5e
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 9 deletions.
3 changes: 2 additions & 1 deletion lib/constants/meta_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import 'package:cliptopia/core/utils.dart';
class MetaInfo {
MetaInfo._();

static String get version => "v1.0.0+2";
static String get version => "v1.0.0+3";
static String get daemonCompatibleVersion => "v0.0.3";
static const daemonDownloadUrl =
"https://github.com/omegaui/cliptopia_daemon/raw/master/cliptopia-daemon";
static final daemonDownloadedBinaryPath = combineHomePath([
Expand Down
21 changes: 14 additions & 7 deletions lib/constants/usage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,26 @@ class Usage {
static void logUsage({describe = true}) {
if (describe) {
stdout.writeln("The state-of-the-art clipboard manager.");
stdout.writeln(
"See Project on GitHub: https://github.com/omegaui/cliptopia");
stdout.writeln();
}
stdout.writeln("Usage: cliptopia [OPTIONS]");
stdout.writeln("where OPTIONS could be one of these:");
stdout.writeln();
stdout.writeln("\t--debug Enable printing logs to the terminal");
stdout.writeln(
"\t--silent Closes the GUI once an insertion choice is made");
stdout.writeln("\t--version Prints program version");
stdout
.writeln("\t--silent Closes the app once you make a selection");
"\t--debug Enable printing logs to the terminal");
stdout.writeln(
"\t--power An Effective Mode can be triggered with Super + V");
stdout.writeln("\t--help Prints this help message");
"\t--silent Closes the GUI once an insertion choice is made");
stdout.writeln(
"\t--version Prints program version");
stdout.writeln(
"\t--silent Closes the app once you make a selection");
stdout.writeln(
"\t--power An Effective Mode can be triggered with Super + V");
stdout.writeln(
"\t--daemon-compatible-version Prints the required daemon version");
stdout.writeln(
"\t--help Prints this help message");
}
}
5 changes: 5 additions & 0 deletions lib/core/argument_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class ArgumentHandler {
'--silent',
'--power',
'--version',
'--daemon-compatible-version',
'--help',
];

Expand All @@ -23,6 +24,10 @@ class ArgumentHandler {
return _arguments.contains('--version');
}

static bool shouldShowDaemonCompatibleVersion() {
return _arguments.contains('--daemon-compatible-version');
}

static bool isDebugMode() {
return _arguments.contains('--debug');
}
Expand Down
6 changes: 6 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ void main(List<String> arguments) {
return;
}

if (ArgumentHandler.shouldShowDaemonCompatibleVersion()) {
stdout.writeln(
"Compatible Cliptopia Daemon version ${MetaInfo.daemonCompatibleVersion}");
return;
}

WidgetsFlutterBinding.ensureInitialized();

// Initializing App Storage
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: The state-of-the-art clipboard manager.

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.0+2
version: 1.0.0+3

environment:
sdk: '>=3.1.4 <4.0.0'
Expand Down

0 comments on commit 6b61f5e

Please sign in to comment.