mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
28 lines
706 B
C++
28 lines
706 B
C++
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
namespace osquery {
|
|
|
|
// Run a shell with all of the relevant virtual tables loaded
|
|
/** @brief Run an interactive SQL query shell.
|
|
*
|
|
* @code{.cpp}
|
|
* // Copyright 2004-present Facebook. All Rights Reserved.
|
|
* #include "osquery/core.h"
|
|
* #include "osquery/devtools.h"
|
|
|
|
* int main(int argc, char *argv[]) {
|
|
* osquery::initOsquery(argc, argv);
|
|
* return osquery::launchIntoShell(argc, argv);
|
|
* }
|
|
* @endcode
|
|
*
|
|
* @param argc the number of elements in argv
|
|
* @param argv the command-line flags
|
|
*
|
|
* @return an int which represents the "return code"
|
|
*/
|
|
int launchIntoShell(int argc, char **argv);
|
|
}
|