Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
harveysanders committed Feb 5, 2024
1 parent 571e395 commit 8b7c355
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions controller/github-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { version } = require('../package.json');

class GithubAPI {
/**
*
* Creates a new GitHub API client.
* @param {string} token
* @returns
*/
Expand All @@ -20,7 +20,7 @@ class GithubAPI {
}

/**
*
* Parses a GitHub repository URL and returns the owner and repo.
* @param {string} url
* @returns {{owner: string, repo: string}}
*/
Expand All @@ -32,7 +32,7 @@ class GithubAPI {
};
}
/**
*
* Downloads the tests for a project from GitHub into the specified `directory`.
* @param {string} url
* @param {string} directory
*/
Expand Down Expand Up @@ -118,7 +118,7 @@ class GithubAPI {
let _client;
module.exports = {
/**
*
* Returns a new or existing GitHub API client.
* @param {string} token
* @returns {GithubAPI}
*/
Expand Down
8 changes: 5 additions & 3 deletions controller/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ const {
const rootDirectory = `${home()}/environment`;
const projectsDirectory = `${rootDirectory}/projects`;

// Start of test command
// Runs the listProjectsOf function from projects to select project
// that user wants to be tested
/**
* `test` command entry point.
* Runs the `listProjectsOf` function from projects to select project
* that user wants to be tested.
*/
function test() {
console.log(clc.blue('Beginning test process!'));
projects.action = 'test';
Expand Down

0 comments on commit 8b7c355

Please sign in to comment.