mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
add flags for public / private
This commit is contained in:
parent
0429fa636b
commit
77444bff2e
3 changed files with 4 additions and 2 deletions
|
|
@ -194,7 +194,7 @@ public class Context
|
|||
|
||||
public LookupContext LookupContextFor(SystemId systemId, bool? _hasPrivateOverride = null, bool? _hasPublicOverride = null)
|
||||
{
|
||||
// TODO(yusdacra): these should be passed as a parameter to this method all the way from command tree
|
||||
// todo(dusk): these should be passed as a parameter ideally
|
||||
bool hasPrivateOverride = _hasPrivateOverride ?? Parameters.HasFlag("private", "priv");
|
||||
bool hasPublicOverride = _hasPublicOverride ?? Parameters.HasFlag("public", "pub");
|
||||
|
||||
|
|
|
|||
|
|
@ -46,6 +46,8 @@ pub fn all() -> impl Iterator<Item = Command> {
|
|||
.hidden_flag(("raw", ["r"]))
|
||||
.hidden_flag(("show-embed", ["se"]))
|
||||
.hidden_flag(("by-id", ["id"]))
|
||||
.hidden_flag(("private", ["priv"]))
|
||||
.hidden_flag(("public", ["pub"]))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use command_parser::Tree;
|
|||
use commands::COMMAND_TREE;
|
||||
|
||||
fn main() {
|
||||
related();
|
||||
parse();
|
||||
}
|
||||
|
||||
fn related() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue