Skip to content
suit Artifact [edc1e1dfc5]
Login

Artifact [edc1e1dfc5]

Artifact edc1e1dfc5e0c969f8721b74441319f498be2646a0d552db0039fa2591b6b0c7:


#ifndef SUIT_COMMANDS_H
#define SUIT_COMMANDS_H

// The wardrobe suit applies is named "mine". Its store holds suit.conf.
#define WARDROBE_NAME "mine"

// Each returns an exit code and reports on stdout and stderr.
int cmd_plan(void);
int cmd_apply(void);
int cmd_status(void);
// Every place that supplies the asset NAME for the current folder, and which one is in effect.
int cmd_why(const char *name);
int cmd_off(void);
// `suit hooks`: what `suit-run hook EVENT` would run for each event, changing nothing.
int cmd_hooks(void);
// Say whether each need is done: 0 when all are, 1 when one is not or cannot be told, 2 on a config error.
int cmd_needs(void);
// Print the prompt of the need NAME of HARNESS.
int cmd_need(const char *harness, const char *name);
int cmd_run(void);
// NAME is null to show the machine's name.
int cmd_machine(const char *name);
// VERB is null to list the roots, else "add" or "rm" with ARG the folder. ARG is changed.
int cmd_roots(const char *verb, char *arg);
// Show the list the last scan wrote, or with SCAN make it.
int cmd_projects(bool scan);
// Set (KEY given) or unset the remote key of the project at PATH by hand. PATH is changed.
int cmd_project(char *path, const char *key);

#endif