• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

eclipse-bluechi / bluechi / 16568751257

28 Jul 2025 12:15PM UTC coverage: 72.062% (-2.4%) from 74.418%
16568751257

Pull #1089

github

web-flow
Merge eb5f7a5ea into a215ee9c8
Pull Request #1089: Release BlueChi v1.1.0

4955 of 6876 relevant lines covered (72.06%)

848.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/client/method-help.c
1
/*
2
 * Copyright Contributors to the Eclipse BlueChi project
3
 *
4
 * SPDX-License-Identifier: LGPL-2.1-or-later
5
 */
6
#include "method-help.h"
7
#include "client.h"
8
#include "usage.h"
9

10
void usage_bluechi() {
×
11
        usage_print_header();
×
12
        usage_print_usage("bluechictl [command]");
×
13
        printf("Available commands:\n");
×
14
        printf("  - help: shows this help message\n");
×
15
        printf("    usage: help\n");
×
16
        printf("  - list-unit-files: returns the list of systemd service files installed on a specific or on all nodes\n");
×
17
        printf("    usage: list-unit-files [nodename] [--filter=glob]\n");
×
18
        printf("  - list-units: returns the list of systemd services running on a specific or on all nodes\n");
×
19
        printf("    usage: list-units [nodename] [--filter=glob]\n");
×
20
        printf("  - start: starts a specific systemd service (or timer, or slice) on a specific node\n");
×
21
        printf("    usage: start nodename unitname\n");
×
22
        printf("  - stop: stop a specific systemd service (or timer, or slice) on a specific node\n");
×
23
        printf("    usage: stop nodename unitname\n");
×
24
        printf("  - freeze: freeze a specific systemd service on a specific node\n");
×
25
        printf("    usage: freeze nodename unitname\n");
×
26
        printf("  - thaw: thaw a frozen systemd service on a specific node\n");
×
27
        printf("    usage: thaw nodename unitname\n");
×
28
        printf("  - reload: reloads a specific systemd service (or timer, or slice) on a specific node\n");
×
29
        printf("    usage: reload nodename unitname\n");
×
30
        printf("  - restart: restarts a specific systemd service (or timer, or slice) on a specific node\n");
×
31
        printf("    usage: restart nodename unitname\n");
×
32
        printf("  - reset-failed: reset failed node on all node or all units on a specific node or specidec units on a node \n");
×
33
        printf("    usage: reset-failed [nodename] [unit1, unit2 ...]\n");
×
34
        printf("  - kill: kills processes of a specific unit on the given node\n");
×
35
        printf("    usage: kill [nodename] [unit] [--kill-whom=all|main|control] [--signal=<number>]\n");
×
36
        printf("  - enable: enables the specified systemd files on a specific node\n");
×
37
        printf("    usage: enable nodename unitfilename...\n");
×
38
        printf("  - disable: disables the specified systemd files on a specific node\n");
×
39
        printf("    usage: disable nodename unitfilename...\n");
×
40
        printf("  - metrics [enable|disable]: enables/disables metrics reporting\n");
×
41
        printf("    usage: metrics [enable|disable]\n");
×
42
        printf("  - metrics listen: listen and print incoming metrics reports\n");
×
43
        printf("    usage: metrics listen\n");
×
44
        printf("  - monitor: creates a monitor on the given node to observe changes in the specified units\n");
×
45
        printf("    usage: monitor [node] [unit1,unit2,...]\n");
×
46
        printf("  - status: shows the status of a node, or statuses of all nodes, or status of a unit on node\n");
×
47
        printf("    usage: status [nodename [unitname]] [-w/--watch]\n");
×
48
        printf("  - daemon-reload: reload systemd daemon on a specific node\n");
×
49
        printf("    usage: daemon-reload nodename\n");
×
50
        printf("  - set-loglevel: change the log level of the bluechi-controller or a connected node\n");
×
51
        printf("    usage: set-loglevel [nodename] [loglevel]\n");
×
52
        printf("  - get-default: get a default target of connected node\n");
×
53
        printf("    usage: get-default [nodename]\n");
×
54
        printf("  - set-default: set a default target of connected node\n");
×
55
        printf("    usage: set-default [nodename] [target]\n");
×
56
}
×
57

58
int method_help(UNUSED Command *command, UNUSED void *userdata) {
×
59
        usage_bluechi();
×
60
        return 0;
×
61
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc