From 29799e463182af9cb243c8533adbd59a02ceea9b Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 1 Oct 2021 02:48:22 +0100 Subject: [PATCH] Update subcommands --- src/subcommands/agent/meta.mjs | 11 ++--------- src/subcommands/query/meta.mjs | 6 ++---- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/subcommands/agent/meta.mjs b/src/subcommands/agent/meta.mjs index f6b4344..cc11209 100644 --- a/src/subcommands/agent/meta.mjs +++ b/src/subcommands/agent/meta.mjs @@ -1,13 +1,6 @@ "use strict"; export default function(cli) { - cli.subcommand("download", "Downloads & anonymises Twitter data from the Academic API (not guaranteed to be downloaded in chronological order)") - .argument("search", "The search string to query the Twitter API with", null, "string") - .argument("start-time", "The start time to start downloading tweets from", null, "date") - .argument("end-time", "Optional. The end time to finish downloading tweets at", null, "date") - .argument("credentials", "Path to a (TOML formatted) credentials file to use. See the README for more information on the format.") - .argument("output", "Path to the directory to write the output to", null, "string") - .argument("max-query-length", "The maximum query length. Default: 1024. This only needs changing if you're not on the academic product track (which is the only track supported by this tool at the current time)", 1024, "integer") - .argument("tweets-per-request", "Max number of tweets to ask for per api call. Default: 100, can range from 10 to 500. Keep at a low value during testing, then bump it to max for the actual run.", 100, "integer") - .argument("no-replies", "Do not download replies to tweets. Speeds up execution, but of course yields less data.", false, "boolean"); + cli.subcommand("agent", "Starts the systemquery agent") + .argument("config", "Specifies the config file location", "/etc/systemquery/systemquery.toml", "string"); } diff --git a/src/subcommands/query/meta.mjs b/src/subcommands/query/meta.mjs index 191f11e..671746f 100644 --- a/src/subcommands/query/meta.mjs +++ b/src/subcommands/query/meta.mjs @@ -1,8 +1,6 @@ "use strict"; export default function(cli) { - cli.subcommand("anonymise", "Anonymises tweets in a jsonl file. Output file is -anonymised.. Note that this is done automatically on download - you do NOT need to run this manually unless you have data from elsewhere.") - .argument("input", "Path to the input file to anonymise.", null, "string") - .argument("type", "The type of object to anonymise. Default: tweet. Possible values: tweet, user.", "tweet", "string") - .argument("credentials", "Path to a (TOML formatted) credentials file that contains the salt to use for anonymisation. See the README for more information on the format.") + cli.subcommand("query", "Query the cluster [requires agent with the query permission to be running on this host]") + .argument("address", "Address of the agent to connect to.", "unix-abstract:systemquery", "string"); }