Skip to content

Commit

Permalink
[ Edit ] 0.9.43
Browse files Browse the repository at this point in the history
  • Loading branch information
anasfik committed Oct 24, 2023
1 parent 5a219f6 commit 3191c4b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@
- Bug Fixes in comptaibility with the new depency inversion principle of the configuration logic.
- Added support for json configuration in addition of the yaml configuration, with the default one being yaml, the user can specify it with the `--json`, `--yaml`...
- Added syntax highlighting for the configuration files.

## 0.9.43

- Exposed fully FREE beta version, for BETA testing and feedbacks.
7 changes: 6 additions & 1 deletion bin/langsync.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ Future<void> main(List<String> args) async {

Hive.init(langSyncDir.path);

await Hive.openBox<dynamic>('config');
final box = await Hive.openBox<dynamic>('config');

await box.put(
'apiKey',
'f3c5d5721020da969a0a1f65686723a1484ba4bd167b0b08daeaa6bb6312fefc',
);

await _flushThenExit(await LangsyncCommandRunner().run(args));
}
Expand Down
7 changes: 3 additions & 4 deletions lib/src/command_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import 'package:pub_updater/pub_updater.dart';

const executableName = 'langsync';
const packageName = 'langsync';
final description =
'''
final description = '''
An AI powered Command Line Interface (CLI) tool that helps you process your original language-specific files such translations, strings & texts.. and generates the corresponding translated files in the target language(s).
Expand Down Expand Up @@ -49,9 +48,9 @@ class LangsyncCommandRunner extends CompletionCommandRunner<int> {
help: 'Print verbose output.',
);

addCommand(AccountCommand(logger: _logger));
// addCommand(AccountCommand(logger: _logger));
addCommand(ConfigCommand(logger: _logger));
addCommand(SupportedLangsCommand(logger: _logger));
// addCommand(SupportedLangsCommand(logger: _logger));
addCommand(StartCommand(logger: _logger));

if (utils.isDebugMode) addCommand(DebugInfoCommand(logger: _logger));
Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const packageVersion = '0.9.42';
const packageVersion = '0.9.43';

0 comments on commit 3191c4b

Please sign in to comment.