-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Rexios80/feature/refactor-2024-10-11
Feature/refactor 2024 10 11
- Loading branch information
Showing
43 changed files
with
471 additions
and
346 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,6 @@ build/ | |
pubspec.lock | ||
|
||
# macOS | ||
.DS_Store | ||
.DS_Store | ||
|
||
*.log |
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 +1 @@ | ||
include: package:rexios_lints/dart/package.yaml | ||
include: package:rexios_lints/dart/package_extra.yaml |
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,33 @@ | ||
import 'dart:io'; | ||
|
||
import 'package:pub_semver/pub_semver.dart'; | ||
import 'package:io/ansi.dart'; | ||
|
||
final minFvmVersion = Version.parse('3.0.0'); | ||
|
||
void fvmCheck() { | ||
try { | ||
final fvmVersionResult = Process.runSync('fvm', ['--version']); | ||
final fvmVersion = Version.parse(fvmVersionResult.stdout.toString().trim()); | ||
if (fvmVersion < minFvmVersion) { | ||
print( | ||
yellow.wrap( | ||
''' | ||
This version of puby expects FVM version $minFvmVersion or higher | ||
FVM version $fvmVersion is installed | ||
Commands in projects configured with FVM may fail | ||
''', | ||
), | ||
); | ||
} | ||
} catch (e) { | ||
print( | ||
red.wrap( | ||
''' | ||
FVM is not installed | ||
Commands in projects configured with FVM will fail | ||
''', | ||
), | ||
); | ||
} | ||
} |
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
Oops, something went wrong.