examples/whoami/commands/greet.js
function(session, args, callback) {
        session.stdout().write('Hello, ' + session.env('me').bold + '\n');
        return callback();
    }
function(session, args, callback) {
        session.stdout().write('Hello, ' + session.env('me').bold + '\n');
        return callback();
    }
function ( session , args , callback ) { session . stdout ( ) . write ( 'Hello, ' + session . env ( 'me' ) . bold + '\n' ) ; return callback ( ) ; }
The function that actually invokes the command. Simply pull the current state of the "me" environment variable and print it to the console.
The function that actually invokes the command . Simply pull the current state of the me environment variable and print it to the console .