Closed TechSpiritSS closed 1 year ago
I would like to work on this issue.
The thing is I have not created a function to sort the commands but change the createCodes() array to a list:
let listOfCreateCodes = [
[["help"], "for a list of commands"],
[["clear"], "to clear the terminal"],
[["about"], "to learn more about me"],
[["social"], "to see my social links (add flags '-l' for links and '-d' for detailed results)"],
[["projects"], "to see my projects"],
[["blogs"], "to see my recent blogs"],
[["contact"], "to enquire about my services"],
[["cheer"], "to appreciate my work"],
[["repos"], "to see my github repositories"],
[["ipconfig"], "to see your IP details"],
[["github"], "to see my github stats"],
[["contributors"], "to see all the contributors"],
[["download"], "to download my pdf resume"],
[["calc"], "to evaluate an expression, for eg: (2 + 3)"],
[["experience"], "to see my work experience"],
[["history"],"shows the last 10 valid commands performed, use --clear flag to clear the history"],
]
listOfCreateCodes.sort((a,b)=>{
if(a[0]>b[0])
return 1;
else
return -1;
});
for(let i=0;i<listOfCreateCodes.length;++i){
console.log
createCode(listOfCreateCodes[i][0],listOfCreateCodes[i][1]);
}
please merge all the PR's and then let me know so I do not get into merge conflicts. and other's do not suffer cause of my simple hack :-)
Some PR are having issues, can't merge them before that.
We will wait till then.
create the PR as others' PR having issues
Contact Details
techspiritss@duck.com
Explain the proposed feature
A function that will automatically organize the list of commands in alphabetical order. This feature will make it easier for user to find the command they are looking for.
Explain the possible use cases for the feature
By organizing the commands in alphabetical order, users will be able to more easily find the command they are looking for, making it easier to use the terminal-like portfolio.
Any other details you would like to provide?
No response