|
13 | 13 | #error "Unsupported platform" |
14 | 14 | #endif |
15 | 15 |
|
16 | | -#include "./inih/ini.h" |
17 | | -#include "main.h" |
| 16 | +#include "ini.h" |
| 17 | +#include "util.h" |
18 | 18 |
|
19 | 19 | /** PLUMBING UTILITY FUNCTIONS */ |
20 | 20 | char *compat_getenv(char *var) { |
@@ -62,7 +62,7 @@ void show_help() { |
62 | 62 | /** APPLICATION UTILITY FUNCTIONS */ |
63 | 63 | void deploy_symlink(struct Entry entry) { |
64 | 64 | #ifdef __linux__ |
65 | | - symlink(source, target); |
| 65 | + // symlink(source, target); |
66 | 66 | #endif |
67 | 67 | } |
68 | 68 |
|
@@ -305,7 +305,7 @@ char pwddir[PATH_MAX]; |
305 | 305 | if (thing == NULL) { |
306 | 306 | thing = config->current_entry.source; |
307 | 307 | } |
308 | | - deploy_symlink(entry); |
| 308 | + // deploy_symlink(entry); |
309 | 309 |
|
310 | 310 | config->current_entry_ready = false; |
311 | 311 | struct Entry entry = { |
@@ -446,28 +446,3 @@ struct Cli parse_cli(int argc, char *argv[]) { |
446 | 446 |
|
447 | 447 | return cli; |
448 | 448 | } |
449 | | - |
450 | | -#ifdef IS_NOT_TEST |
451 | | -int main(int argc, char *argv[]) { |
452 | | - struct Cli cli = parse_cli(argc, argv); |
453 | | - if (cli.help) { |
454 | | - show_help(); |
455 | | - exit(0); |
456 | | - } |
457 | | - struct Config config = parse_config(cli.config_file); |
458 | | - |
459 | | - if (STR_EQ(cli.command, "init")) { |
460 | | - command_init(cli, config); |
461 | | - } else if (STR_EQ(cli.command, "list")) { |
462 | | - command_list(cli, config); |
463 | | - } else if (STR_EQ(cli.command, "deploy")) { |
464 | | - command_deploy(cli, config); |
465 | | - } else if (STR_EQ(cli.command, "replace")) { |
466 | | - command_replace(cli, config); |
467 | | - } else if (STR_EQ(cli.command, "undeploy")) { |
468 | | - command_undeploy(cli, config); |
469 | | - } else { |
470 | | - die("Command not accounted for"); |
471 | | - } |
472 | | -} |
473 | | -#endif |
0 commit comments