Skip to content

Commit

Permalink
Merge 514d458 into 2926773
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavgarg11 committed Jun 5, 2017
2 parents 2926773 + 514d458 commit b57c278
Show file tree
Hide file tree
Showing 30 changed files with 12,503 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/help.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/**
* Displays the list of autolab commands along with their functions.
* @module lib/help
*/
var Table = require('cli-table');
var chalk = require('chalk');
/**
* Contains list of all the autolab commands and their functions as key/value pairs
*/
var helpjson = {
'init' : 'Initializes local repository and authenticates',
'exit' : 'Wipes off the credentials from the system',
Expand All @@ -11,6 +18,13 @@ var helpjson = {
'submit' : 'To submit the code to JavaAutolab and fetch the results',
'help' : 'Print help manual'
};
/**
* @exports function as a object
* Function displays all the keys and the values of the helpjson object
* @function
* @param {null}
* @return {null}
*/
module.exports = function() {
console.log('\n' + chalk.blue('Usage:') + ' autolab [OPTIONS]');
var table = new Table({
Expand Down
Binary file added out/fonts/OpenSans-Bold-webfont.eot
Binary file not shown.
1,830 changes: 1,830 additions & 0 deletions out/fonts/OpenSans-Bold-webfont.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added out/fonts/OpenSans-Bold-webfont.woff
Binary file not shown.
Binary file added out/fonts/OpenSans-BoldItalic-webfont.eot
Binary file not shown.
1,830 changes: 1,830 additions & 0 deletions out/fonts/OpenSans-BoldItalic-webfont.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added out/fonts/OpenSans-BoldItalic-webfont.woff
Binary file not shown.
Binary file added out/fonts/OpenSans-Italic-webfont.eot
Binary file not shown.
1,830 changes: 1,830 additions & 0 deletions out/fonts/OpenSans-Italic-webfont.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added out/fonts/OpenSans-Italic-webfont.woff
Binary file not shown.
Binary file added out/fonts/OpenSans-Light-webfont.eot
Binary file not shown.
1,831 changes: 1,831 additions & 0 deletions out/fonts/OpenSans-Light-webfont.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added out/fonts/OpenSans-Light-webfont.woff
Binary file not shown.
Binary file added out/fonts/OpenSans-LightItalic-webfont.eot
Binary file not shown.
1,835 changes: 1,835 additions & 0 deletions out/fonts/OpenSans-LightItalic-webfont.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added out/fonts/OpenSans-LightItalic-webfont.woff
Binary file not shown.
Binary file added out/fonts/OpenSans-Regular-webfont.eot
Binary file not shown.
1,831 changes: 1,831 additions & 0 deletions out/fonts/OpenSans-Regular-webfont.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added out/fonts/OpenSans-Regular-webfont.woff
Binary file not shown.
268 changes: 268 additions & 0 deletions out/global.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,268 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Global</title>

<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

<h1 class="page-title">Global</h1>






<section>

<header>

<h2></h2>


</header>

<article>
<div class="container-overview">






<dl class="details">
































</dl>




</div>














<h3 class="subsection-title">Methods</h3>






<h4 class="name" id="function"><span class="type-signature"></span>function<span class="signature">()</span><span class="type-signature"> &rarr; {null}</span></h4>













<h5>Parameters:</h5>


<table class="params">
<thead>
<tr>


<th>Type</th>





<th class="last">Description</th>
</tr>
</thead>

<tbody>


<tr>


<td class="type">


<span class="param-type">null</span>



</td>





<td class="description last"></td>
</tr>


</tbody>
</table>






<dl class="details">


























<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="help.js.html">help.js</a>, <a href="help.js.html#line28">line 28</a>
</li></ul></dd>







</dl>













<h5>Returns:</h5>




<dl>
<dt>
Type
</dt>
<dd>

<span class="param-type">null</span>


</dd>
</dl>











</article>

</section>




</div>

<nav>
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-lib_help.html">lib/help</a></li></ul><h3>Global</h3><ul><li><a href="global.html#function">function</a></li></ul>
</nav>

<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Mon Jun 05 2017 15:53:34 GMT+0530 (IST)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
90 changes: 90 additions & 0 deletions out/help.js.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Source: help.js</title>

<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

<h1 class="page-title">Source: help.js</h1>






<section>
<article>
<pre class="prettyprint source linenums"><code>/**
* Displays the list of autolab commands along with their functions.
* @module lib/help
*/
var Table = require('cli-table');
var chalk = require('chalk');
/**
* Contains list of all the autolab commands and their functions as key/value pairs
*/
var helpjson = {
'init' : 'Initializes local repository and authenticates',
'exit' : 'Wipes off the credentials from the system',
'git create' : 'Creates a repository on Gitlab',
'git delete' : 'Deletes the specified repository from Gitlab',
'git changeserver' : 'To change the host of Gitlab',
'git changelang' : 'To change the language of the code submission',
'git push' : 'Adds, commits, pushes the code',
'submit' : 'To submit the code to JavaAutolab and fetch the results',
'help' : 'Print help manual'
};
/**
* @exports function as a object
* Function displays all the keys and the values of the helpjson object
* @function
* @param {null}
* @return {null}
*/
module.exports = function() {
console.log('\n' + chalk.blue('Usage:') + ' autolab [OPTIONS]');
var table = new Table({
head: ['Options:', ''],
colWidths: [20,70]
});
for (var key in helpjson)
table.push(
[key,helpjson[key]]
);
console.log(table.toString());
};
</code></pre>
</article>
</section>




</div>

<nav>
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-lib_help.html">lib/help</a></li></ul><h3>Global</h3><ul><li><a href="global.html#function">function</a></li></ul>
</nav>

<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Mon Jun 05 2017 15:53:34 GMT+0530 (IST)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>

0 comments on commit b57c278

Please sign in to comment.