MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / msh_help

Function msh_help

components/finsh/msh.c:35–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33typedef int (*cmd_function_t)(int argc, char **argv);
34
35static int msh_help(int argc, char **argv)
36{
37 rt_kprintf("RT-Thread shell commands:\n");
38 {
39 struct finsh_syscall *index;
40#if defined(FINSH_USING_SYMTAB)
41 for (index = _syscall_table_begin;
42 index < _syscall_table_end;
43 FINSH_NEXT_SYSCALL(index))
44 {
45#if defined(FINSH_USING_DESCRIPTION)
46 rt_kprintf("%-16s - %s\n", index->name, index->desc);
47#else
48 rt_kprintf("%s ", index->name);
49#endif /* FINSH_USING_DESCRIPTION */
50 }
51#endif /* FINSH_USING_SYMTAB */
52 }
53 rt_kprintf("\n");
54
55 return 0;
56}
57MSH_CMD_EXPORT_ALIAS(msh_help, help, RT-Thread shell help);
58
59#ifdef MSH_USING_BUILT_IN_COMMANDS

Callers 1

msh_auto_completeFunction · 0.85

Calls 1

rt_kprintfFunction · 0.85

Tested by

no test coverage detected