Skip to content

Commit

Permalink
Update Foss
Browse files Browse the repository at this point in the history
  • Loading branch information
oanguenot committed Oct 10, 2018
1 parent 3d55d89 commit 52f081b
Show file tree
Hide file tree
Showing 4 changed files with 234 additions and 339 deletions.
1 change: 0 additions & 1 deletion commands/CApplication.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ class CApplication {
return new Promise(function(resolve, reject) {
NodeSDK.get("/api/rainbow/applications/v1.0/applications/" + options.appid, token)
.then(function(json) {
console.log(">>", that._prefs.user);
let url = "/api/rainbow/enduser/v1.0/users/";
if (that._prefs.user.roles.includes("support") || that._prefs.user.roles.includes("superadmin")) {
url = "/api/rainbow/admin/v1.0/users/";
Expand Down
34 changes: 21 additions & 13 deletions common/Autocomplete.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,38 @@
const Logger = require('./Logger');
const Logger = require("./Logger");

let complete = null;

const initialize = () => {
/*
tabtab = require("tabtab");
tabtab
.install({
name: "rbw",
completer: "rbw"
})
.then(() => Logger.logs("AUTOCOMP - (install) ok"))
.catch(err => Logger.error("AUTOCOMP - (install) error", err));
complete = require('tabtab')({
name: 'rbw'
});

// General handler. Gets called on `program <tab>` and `program stuff ... <tab>`
complete.on('rbw', function(data, done) {
complete.on("rbw", function(data, done) {
// General handler
done(null, ['configure', 'login', 'logout', 'preferences', 'remove', 'set', 'whoami']);
done(null, ["configure", "login", "logout", "preferences", "remove", "set", "whoami"]);
});
complete.on('set', function(data, done) {
done(null, ['email', 'host', 'keys', 'password', 'proxy']);
complete.on("set", function(data, done) {
done(null, ["email", "host", "keys", "password", "proxy"]);
});
complete.on('remove', function(data, done) {
done(null, ['keys', 'preferences', 'proxy']);
complete.on("remove", function(data, done) {
done(null, ["keys", "preferences", "proxy"]);
});
complete.start();
*/
};

module.exports = {
initialize,
};
initialize
};
Loading

0 comments on commit 52f081b

Please sign in to comment.