Open giovannipizzi opened 4 years ago
Looks a bit complication to me. I think just print error is fine, also serves as a reminder of what is wrong, which is not the case if the command just doesn't exist.
As another thought, I think it may worth adding a command like follow_createor
, follow_called
(this will have multiple branches though) as a way to jump following the links.
Quite often I jump around using in -l 0
, out -l 0
, might be useful to have some shortcuts.
E.g., one could have a
creator
command that only works for data nodes and loads the creator,output [LABEL]
/input [LABEL]
commands that only work for processes, orstatus
for processes etc.A possible implementation follows. It works, but I'm not sure if this is going to be less or more confusing. The other options I see is to define them always but print a message if they don't make sense (a bit like what the
@needs_node
currently does)Opionions welcome! @sphuber @zhubonan
(execute it and call
set <INT>
; theeven
andodd
commands are defined only if the number you set is even or odd, respectively)