-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: implement provider contract * feat: implement event parameters * feat: implement cli domain * feat: implement cli components and add export * feat: add cli commands in parameters * feat: move cli to dedicated package
- Loading branch information
1 parent
74d548f
commit 9828093
Showing
8 changed files
with
108 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
import 'dart:async'; | ||
|
||
abstract class ProviderContract { | ||
abstract interface class ProviderContract { | ||
FutureOr<void> ready(); | ||
FutureOr<void> dispose(); | ||
} | ||
|
||
abstract class Provider implements ProviderContract { | ||
@override | ||
FutureOr<void> ready() {} | ||
|
||
@override | ||
FutureOr<void> dispose() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import 'package:logging/logging.dart' as logging; | ||
import 'package:mineral/api.dart'; | ||
|
||
enum LogLevel implements EnhancedEnum<logging.Level> { | ||
trace('TRACE', logging.Level.FINEST), | ||
fatal('FATAL', logging.Level.SHOUT), | ||
error('ERROR', logging.Level.SEVERE), | ||
warn('WARN', logging.Level.WARNING), | ||
info('INFO', logging.Level.INFO); | ||
|
||
final String name; | ||
|
||
@override | ||
final logging.Level value; | ||
|
||
const LogLevel(this.name, this.value); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters