24 lines
679 B
C
24 lines
679 B
C
//
|
|
// Created by nano on 4/1/25.
|
|
//
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
|
|
int whichOption(char *defaultOptions[],char *choice) {
|
|
int res =0;
|
|
//TODO: find a way to not have to hardcode the number of choices
|
|
for (int i=0;i<5;i++) {
|
|
|
|
if (strncmp(defaultOptions[i],choice,strlen(choice))==0) {
|
|
res = i;
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
void printHelp(){
|
|
printf("Usage: breeze <command> <arguments>\n");
|
|
printf("breeze is a cli tool that helps you create shortcuts for often repeated commands.\n");
|
|
printf("You can create local or global commands. Global commands are created with the breeze global <command> subset of commands \n");
|
|
} |