Skip to content

Commit

Permalink
feat: change CLI name to BioDrop
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradumnasaraf committed Sep 9, 2023
1 parent e033519 commit e2fa142
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 42 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

## 💥 How to Contribute

- Look at the existing [**Issues**](https://github.com/Pradumnasaraf/LinkFree-CLI/issues) or [**create a new issue**](https://github.com/Pradumnasaraf/LinkFree-CLI/issues/new/choose)!
- [**Fork the Repo**](https://github.com/Pradumnasaraf/LinkFree-CLI/fork). Then, create a branch for any issue that you are working on. Finally, commit your work.
- Create a **[Pull Request](https://github.com/Pradumnasaraf/LinkFree-CLI/compare)** (_PR_), which will be promptly reviewed and given suggestions for improvements by the community.
- Look at the existing [**Issues**](https://github.com/Pradumnasaraf/BioDrop-CLI/issues) or [**create a new issue**](https://github.com/Pradumnasaraf/BioDrop-CLI/issues/new/choose)!
- [**Fork the Repo**](https://github.com/Pradumnasaraf/BioDrop-CLI/fork). Then, create a branch for any issue that you are working on. Finally, commit your work.
- Create a **[Pull Request](https://github.com/Pradumnasaraf/BioDrop-CLI/compare)** (_PR_), which will be promptly reviewed and given suggestions for improvements by the community.
- Add screenshots or screen captures to your Pull Request to help us understand the effects of the changes proposed in your PR.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
<img align="right" src="https://user-images.githubusercontent.com/51878265/186825286-499db16b-5b95-488d-b6d5-09d44521b890.png" height="35px"> <h2>LinkFree CLI </h2>
<img align="right" src="https://user-images.githubusercontent.com/51878265/186825286-499db16b-5b95-488d-b6d5-09d44521b890.png" height="35px"> <h2>BioDrop CLI </h2>

<div align="center">

**LinkFree CLI** is a command line tool that helps us to create and update your **[LinkFree](https://github.com/EddieHubCommunity/LinkFree)** profile through CLI. We can also give testimonials and add events through it.
**BioDrop CLI** is a command line tool that helps us to create and update your **[BioDrop](https://github.com/EddieHubCommunity/BioDrop)** profile through CLI. We can also give testimonials and add events through it.

<br>

[![NPM Package](https://github.com/Pradumnasaraf/LinkFree-CLI/actions/workflows/publish.yml/badge.svg)](https://github.com/Pradumnasaraf/LinkFree-CLI/actions/workflows/publish.yml)
[![Releases](https://github.com/Pradumnasaraf/LinkFree-CLI/actions/workflows/releases.yml/badge.svg)](https://github.com/Pradumnasaraf/LinkFree-CLI/actions/workflows/releases.yml)
[![Npm package total downloads](https://badgen.net/npm/dt/linkfree-cli)](https://npmjs.com/package/linkfree-cli)
[![NPM Package](https://github.com/Pradumnasaraf/BioDrop-CLI/actions/workflows/publish.yml/badge.svg)](https://github.com/Pradumnasaraf/BioDrop-CLI/actions/workflows/publish.yml)
[![Releases](https://github.com/Pradumnasaraf/BioDrop-CLI/actions/workflows/releases.yml/badge.svg)](https://github.com/Pradumnasaraf/BioDrop-CLI/actions/workflows/releases.yml)
[![Npm package total downloads](https://badgen.net/npm/dt/biodrop-cli)](https://npmjs.com/package/biodrop-cli)

</div>

![LinkFree CLI demo GIF](https://user-images.githubusercontent.com/51878265/226284599-5702dfd2-0825-471f-a693-8a216c2d7cfe.gif)
![BioDrop CLI demo GIF](https://user-images.githubusercontent.com/51878265/226284599-5702dfd2-0825-471f-a693-8a216c2d7cfe.gif)

### ⭐️ Features

- Creating a LinkFree profile.
- Searching for a LinkFree profile.
- Updating an existing LinkFree profile.
- Giving a testimonial to a LinkFree profile.
- Creating a BioDrop profile.
- Searching for a BioDrop profile.
- Updating an existing BioDrop profile.
- Giving a testimonial to a BioDrop profile.
- Adding events (conferences, meetups, etc).

### 👨‍💻 Using the CLI tool

To create, update, give a testimonial, etc. Check out this detailed documentation - [linkfree.io/docs/environments/linkfree-cli](https://linkfree.io/docs/environments/linkfree-cli)
To create, update, give a testimonial, etc. Check out this detailed documentation - [BioDrop.io/docs/environments/BioDrop-cli](https://BioDrop.io/docs/environments/BioDrop-cli)

### 📦 Development and Contribution

Expand All @@ -48,7 +48,7 @@ npm run start

Gitpod is the easiest way to set up the project development environment. Click on the button below, and it will set everything up for you.

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/Pradumnasaraf/LinkFree-CLI)
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/Pradumnasaraf/BioDrop-CLI)

### 📝 License

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"type": "module",
"name": "linkfree-cli",
"name": "biodrop-cli",
"version": "2.5.1",
"description": "Generate LinkFree profile.json file via CLI",
"description": "Generate BioDrop profile.json file via CLI",
"main": "src/index.js",
"bin": "src/index.js",
"scripts": {
Expand All @@ -12,8 +12,8 @@
"lint:fix": "eslint --fix ."
},
"keywords": [
"LinkFree-cli",
"LinkFree"
"BioDrop-cli",
"BioDrop"
],
"files": [
"src",
Expand All @@ -38,10 +38,10 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/Pradumnasaraf/LinkFree-CLI.git"
"url": "git+https://github.com/Pradumnasaraf/BioDrop-CLI.git"
},
"bugs": {
"url": "https://github.com/Pradumnasaraf/LinkFRee-CLI.git/issues"
"url": "https://github.com/Pradumnasaraf/BioDrop-CLI.git/issues"
},
"engines": {
"node": ">=18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/addevent/addEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const addEvent = async () => {
} else if (!fs.existsSync(`./data/${eventWriter}.json`)) {
console.log(
chalk.black.bgYellow(
` You don't have a LinkFree JSON file!. Create an account first! `
` You don't have a BioDrop JSON file!. Create an account first! `
)
);
process.exit(0);
Expand Down
2 changes: 1 addition & 1 deletion src/addevent/helper/createEventFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function createEventFile(eventWriter, answers) {
} else {
console.log(
chalk.black.bgYellow(
` You are not in the root directory of LinkFree. Try again! `
` You are not in the root directory of BioDrop. Try again! `
)
);
process.exit(0);
Expand Down
2 changes: 1 addition & 1 deletion src/createjson/helper/createUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function createUser(githubUsername, answers) {
if (err) {
console.log(
chalk.black.bgYellow(
` You are not in the root directory of LinkFree. Try again! `
` You are not in the root directory of BioDrop. Try again! `
)
);
process.exit(0);
Expand Down
4 changes: 2 additions & 2 deletions src/givetestimonial/giveTestimonial.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function givetestimonial() {
} else if (!fs.existsSync(`./data/${githubUsername}.json`)) {
console.log(
chalk.black.bgYellow(
` You don't have a LinkFree JSON file!. Create an account first! `
` You don't have a BioDrop JSON file!. Create an account first! `
)
);
process.exit(0);
Expand All @@ -49,7 +49,7 @@ async function givetestimonial() {
} else if (!fs.existsSync(`./data/${githubUsername}.json`)) {
console.log(
chalk.black.bgYellow(
` The person you want to give a testimonial to doesn't have a LinkFree JSON file!. Ask them to create an account first! `
` The person you want to give a testimonial to doesn't have a BioDrop JSON file!. Ask them to create an account first! `
)
);
process.exit(0);
Expand Down
4 changes: 2 additions & 2 deletions src/givetestimonial/helper/createTestimonialFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function createtestimonialfile(

const json = jsonFormat(jsonSchema, { type: "space", size: 2 });

// Check if we are in the root directory of LinkFree
// Check if we are in the root directory of BioDrop
if (fs.existsSync("./data")) {
// Check if user reciving the testimonial has a "testimonials" directory.
if (fs.existsSync(`./data/${testimonialReceiver}/testimonials`)) {
Expand Down Expand Up @@ -81,7 +81,7 @@ async function createtestimonialfile(
} else {
console.log(
chalk.black.bgYellow(
` You are not in the root directory of LinkFree. Try again! `
` You are not in the root directory of BioDrop. Try again! `
)
);
process.exit(0);
Expand Down
14 changes: 7 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import reportBug from "./reportbug/reportBug.js";
import searchProfile from "./searchprofile/searchProfile.js";

console.log(
chalk.black.bgYellow(` Welcome to LinkFree CLI! Let's get started. `)
chalk.black.bgYellow(` Welcome to BioDrop CLI! Let's get started. `)
);

const choices = [
"Create a LinkFree JSON file",
"Search for a LinkFree user",
"Create a BioDrop JSON file",
"Search for a BioDrop user",
"Update an existing JSON file",
"Provide a testimonial to a LinkFree user",
"Provide a testimonial to a BioDrop user",
"Add an event",
"Report a bug",
];
Expand All @@ -34,19 +34,19 @@ enquirer
.then(async (answers) => {
const { selectedtask } = answers;
switch (selectedtask) {
case "Create a LinkFree JSON file": {
case "Create a BioDrop JSON file": {
createJson();
break;
}
case "Search for a LinkFree user": {
case "Search for a BioDrop user": {
searchProfile();
break;
}
case "Update an existing JSON file": {
checkUpdate();
break;
}
case "Provide a testimonial to a LinkFree user": {
case "Provide a testimonial to a BioDrop user": {
giveTestimonial();
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/reportbug/reportBug.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function urlBuilder(username, title, description) {
title = title.replace(/\s/g, "+");
description = description.replace(/\s/g, "+");

let customUrl = `https://github.com/Pradumnasaraf/LinkFree-CLI/issues/new?assignees=&labels=bug&template=bug.yaml&title=${title}+Report+by+@${username}&description=${description}`;
let customUrl = `https://github.com/Pradumnasaraf/BioDrop-CLI/issues/new?assignees=&labels=bug&template=bug.yaml&title=${title}+Report+by+@${username}&description=${description}`;
return customUrl;
}

Expand Down
6 changes: 3 additions & 3 deletions src/searchprofile/searchProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const usernameValidation = () => {
.then(async (res) => {
if (res.status === 200) {
await axios
.get(`https://linkfree.io/api/profiles/${githubUsername}`)
.get(`https://biodrop.io/api/profiles/${githubUsername}`)
.then((res) => {
if (res.status === 200) {
displayData(res.data);
Expand All @@ -48,7 +48,7 @@ const usernameValidation = () => {
.catch(() => {
console.log(
chalk.white.bgRed.bold(
` LinkFree profile not found with ${githubUsername}! `
` BioDrop profile not found with ${githubUsername}! `
)
);
process.exit(0);
Expand All @@ -70,7 +70,7 @@ const usernameValidation = () => {
function displayData(data) {
// Welcome block
const rainbow = chalkAnimation.karaoke(
`\nHi, welcome to ${data.name}'s (${data.username}) LinkFree profile!\n`
`\nHi, welcome to ${data.name}'s (${data.username}) BioDrop profile!\n`
);
setTimeout(() => {
rainbow.start();
Expand Down

0 comments on commit e2fa142

Please sign in to comment.