mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-13 14:12:57 +00:00
Print feedback message after app create
This commit is contained in:
parent
806678ee5f
commit
329bf25dbd
@ -46,7 +46,11 @@
|
||||
return visuals.widgets.select('Select a type', deviceTypes, callback);
|
||||
});
|
||||
}, function(type, callback) {
|
||||
return resin.models.application.create(params.name, type, callback);
|
||||
options.type = type;
|
||||
return resin.models.application.create(params.name, options.type, callback);
|
||||
}, function(applicationId, callback) {
|
||||
console.info("Application created: " + params.name + " (" + options.type + ", id " + applicationId + ")");
|
||||
return callback();
|
||||
}
|
||||
], done);
|
||||
}
|
||||
|
@ -50,7 +50,12 @@ exports.create =
|
||||
visuals.widgets.select('Select a type', deviceTypes, callback)
|
||||
|
||||
(type, callback) ->
|
||||
resin.models.application.create(params.name, type, callback)
|
||||
options.type = type
|
||||
resin.models.application.create(params.name, options.type, callback)
|
||||
|
||||
(applicationId, callback) ->
|
||||
console.info("Application created: #{params.name} (#{options.type}, id #{applicationId})")
|
||||
return callback()
|
||||
|
||||
], done)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user