Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions visualinux/cmd/vctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def invoke(cls, arg: str):
chat_parser.add_argument('message', type=str, nargs='+', help='Message sent to LLM')
chat_parser.set_defaults(handle=cls.__invoke_chat)

args = parser.parse_args(re.split(r'\s+', arg))
args = parser.parse_args(re.split(r'[^\S\r\n]+', arg))

if hasattr(args, 'handle'):
args.handle(args)
Expand Down Expand Up @@ -122,17 +122,18 @@ def __invoke_remove(cls, args):
print(f'+ vctrl remove id={args.id}')
data = {
'command': 'REMOVE',
'id': args.id
'wKey': args.id
}
core.send(data)

@classmethod
def __invoke_apply(cls, args):
print(f'+ vctrl apply id={args.id} vql={args.vql}')
print(f'+ vctrl apply id={args.id} vql={args.viewql}')
vqlCode = " ".join(args.viewql)
data = {
'command': 'APPLY',
'id': args.id,
'vql': args.vql
'wKey': args.id,
'vqlCode': vqlCode
}
core.send(data)

Expand Down