Skip to content
Snippets Groups Projects
Select Git revision
  • 990738c0194214bd43791486966fca661cd01ecf
  • master default protected
  • exec_auto_adjust_trace
  • let_variables
  • v1.4.1
  • v1.4.0
  • v1.3.0
  • v1.2.0
  • v1.1.0
  • v1.0.0
10 results

InitialiseCommand.java

  • dgelessus's avatar
    990738c0
    Re-implement command inspection feature based on new argument parsing · 990738c0
    dgelessus authored
    CommandUtils.splitArgs now takes an extra (optional) parameter to ask
    it to not split the entire argument string, but only up to the argument
    at the given offset in the string. The returned SplitResult contains
    information about which parameter the argument splitting stopped at.
    
    This is used in the new implementation of the inspection feature: when
    the kernel is asked to inspect at a certain position, the arguments are
    split up to that position, and the argument at that position is
    inspected. (The arguments are only split and not fully parsed, because
    inspection should be possible even if the command arguments are still
    incomplete or otherwise invalid.)
    
    This new implementation replaces the old separate implementation in
    CommandUtils.splitArgs.
    990738c0
    History
    Re-implement command inspection feature based on new argument parsing
    dgelessus authored
    CommandUtils.splitArgs now takes an extra (optional) parameter to ask
    it to not split the entire argument string, but only up to the argument
    at the given offset in the string. The returned SplitResult contains
    information about which parameter the argument splitting stopped at.
    
    This is used in the new implementation of the inspection feature: when
    the kernel is asked to inspect at a certain position, the arguments are
    split up to that position, and the argument at that position is
    inspected. (The arguments are only split and not fully parsed, because
    inspection should be possible even if the command arguments are still
    incomplete or otherwise invalid.)
    
    This new implementation replaces the old separate implementation in
    CommandUtils.splitArgs.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.