// Generated by IcedCoffeeScript 1.7.1-c (function() { var Base, Command, E, TrackSubSubCommand, add_option_dict, iced, log, __iced_k, __iced_k_noop, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; iced = require('iced-runtime').iced; __iced_k = __iced_k_noop = function() {}; Base = require('./base').Base; log = require('../log'); add_option_dict = require('./argparse').add_option_dict; E = require('../err').E; TrackSubSubCommand = require('../tracksubsub').TrackSubSubCommand; exports.Command = Command = (function(_super) { __extends(Command, _super); Command.prototype.OPTS = { a: { alias: "assert", help: "provide a key assertion" } }; function Command(_arg) { this.args = _arg.args, this.opts = _arg.opts, this.tmp_keyring = _arg.tmp_keyring, this.batch = _arg.batch, this.track_local = _arg.track_local, this.ran_keypull = _arg.ran_keypull; this.opts || (this.opts = {}); this.qring = null; } Command.prototype.is_batch = function() { return this.opts.batch || this.batch; }; Command.prototype.add_subcommand_parser = function(scp) { var name, opts, sub; opts = { aliases: ["identify"], help: "Identify a user, but don't accept or reject trust" }; name = "id"; sub = scp.addParser(name, opts); add_option_dict(sub, this.OPTS); sub.addArgument(["them"], { nargs: 1, help: "the username to id" }); return opts.aliases.concat([name]); }; Command.prototype.run = function(cb) { var err, tssc, ___iced_passed_deferral, __iced_deferrals, __iced_k; __iced_k = __iced_k_noop; ___iced_passed_deferral = iced.findDeferral(arguments); tssc = new TrackSubSubCommand({ args: { them: this.argv.them[0] }, opts: this.argv }); (function(_this) { return (function(__iced_k) { __iced_deferrals = new iced.Deferrals(__iced_k, { parent: ___iced_passed_deferral, filename: "/home/max/src/keybase/node-client/src/command/id.iced", funcname: "Command.run" }); tssc.id(__iced_deferrals.defer({ assign_fn: (function() { return function() { return err = arguments[0]; }; })(), lineno: 43 })); __iced_deferrals._fulfill(); }); })(this)((function(_this) { return function() { return cb(err); }; })(this)); }; return Command; })(Base); }).call(this);