mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-18 10:46:34 +00:00
Merge pull request #247 from resin-io/jvioti/refactor/os
Remove unused getOperatingSystem function
This commit is contained in:
commit
822632718f
@ -21,15 +21,6 @@
|
||||
}).object().value();
|
||||
};
|
||||
|
||||
exports.getOperatingSystem = function() {
|
||||
var platform;
|
||||
platform = os.platform();
|
||||
if (platform === 'darwin') {
|
||||
platform = 'osx';
|
||||
}
|
||||
return platform;
|
||||
};
|
||||
|
||||
exports.stateToString = function(state) {
|
||||
var percentage, result;
|
||||
percentage = _.str.lpad(state.percentage, 3, '0') + '%';
|
||||
|
@ -14,11 +14,6 @@ exports.getGroupDefaults = (group) ->
|
||||
.object()
|
||||
.value()
|
||||
|
||||
exports.getOperatingSystem = ->
|
||||
platform = os.platform()
|
||||
platform = 'osx' if platform is 'darwin'
|
||||
return platform
|
||||
|
||||
exports.stateToString = (state) ->
|
||||
percentage = _.str.lpad(state.percentage, 3, '0') + '%'
|
||||
result = "#{chalk.blue(percentage)} #{chalk.cyan(state.operation.command)}"
|
||||
|
Loading…
Reference in New Issue
Block a user