This repository has been archived on 2025-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
Breeze/func.c
2025-04-01 20:41:06 +02:00

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");
}