Opened 2 years ago

Last modified 2 years ago

#1439 new enhancement

Add switch to csi to set initial module

Reported by: evhan Owned by:
Priority: not urgent at all Milestone: someday
Component: core tools Version: 5.0.0
Keywords: csi, modules Cc:
Estimated difficulty: medium

Description

Add a command line option to csi to specify the starting module, similar to Chibi's "-x" switch. This would be equivalent to running csi interactively and immediately using ",m <module>", but could be used with non-interactive scripts, for example.

Change History (3)

comment:1 Changed 2 years ago by Mario Domenech Goulart

Isn't it -R?

comment:2 Changed 2 years ago by Christian Kellermann

Well you could call the ##sys#switch-module with -e as a workaround... except that this does not work as expected. Maybe expose the top level command procedure for ,m is the way to go.

Last edited 2 years ago by Christian Kellermann (previous) (diff)

comment:3 in reply to:  1 Changed 2 years ago by evhan

Replying to mario:

Isn't it -R?

-R just loads an extension, it doesn't switch the evaluation context.

Replying to ckeen:

Well you could call the ##sys#switch-module with -e as a workaround... except that this does not work as expected. Maybe expose the top level command procedure for ,m is the way to go.

Exposing a procedure for use with -e would be an option, except that using -e will make csi behave in batch style rather than interactively. So, that wouldn't be all we need to add this feature, but it could be a start.

Note: See TracTickets for help on using tickets.