MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / creds

Function creds

src/entry_handler.cpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37namespace args {
38 int creds(const char *name, int argc, char *argv[]) {
39 if (argc < 2 || argv[0] == "help"sv || argv[1] == "help"sv) {
40 help(name);
41 }
42
43 http::save_user_creds(config::sunshine.credentials_file, argv[0], argv[1]);
44
45 return 0;
46 }
47
48 int help(const char *name) {
49 logging::print_help(name);

Callers 1

main.cppFile · 0.85

Calls 2

helpFunction · 0.85
save_user_credsFunction · 0.85

Tested by

no test coverage detected