Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasfj committed Oct 13, 2016
1 parent b2b550b commit 4d9d440
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shell/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@ term.onTerminalReady = async () => {
]
};

// Create a shell client, with interface similar to child_process
// With an additional method client.resize(cols, rows) for TTY sizing.
let client;
if (args.v === '1') {
client = new DockerExecClient(options);
await client.execute();

// Wrap client.resize to switch argument ordering
const resize = client.resize;
client.resize = (c, r) => resize.call(client, r, c);
} else if (args.v === '2') {
Expand Down

0 comments on commit 4d9d440

Please sign in to comment.