pkg::create
Construct an appropriate 'package ifneeded' command for a given package specification
- Provided by: tcl8.6-doc (Version: 8.6.12+dfsg-1build1)
- Source: tcl8.6
- Report a bug
Construct an appropriate 'package ifneeded' command for a given package specification
::pkg::create -name packageName -version packageVersion ?-load filespec? ... ?-source filespec? ...
::pkg::create is a utility procedure that is part of the standard Tcl library. It is used to create an appropriate package ifneeded command for a given package specification. It can be used to construct a pkgIndex.tcl file for use with the package mechanism.
The parameters supported are:
At least one -load or -source parameter must be given.
auto-load, index, package, version