Nп/п : 99 из 100
 От   : D Groth                             2:5075/128        30 сен 23 09:21:45
 К    : All                                                   30 сен 23 19:26:02
 Тема : Re: Announce: tclmain 0.1 released
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<3b7ba37e-3406-4656-b89d-8d90d8438560n@googlegroups.com> 4cf374b7
@REPLY:
<f6bf1b9a-2eb4-44db-a69d-0a4a3dfd7447n@googlegroups.com> 904ceccc
@REPLYADDR D Groth <tbgroth15@gmail.com>
@REPLYTO 2:5075/128 D Groth
@CHRS: CP866 2
@RFC: 1 0
@RFC-References:
<0d412694-f1a7-4f0e-a2f0-97975976f24en@googlegroups.com> <20230128171317.2a05c07f@lud1.home>
<f6bf1b9a-2eb4-44db-a69d-0a4a3dfd7447n@googlegroups.com>
@RFC-Message-ID:
<3b7ba37e-3406-4656-b89d-8d90d8438560n@googlegroups.com>
@TZUTC: -0700
@PID: G2/1.0
@TID: FIDOGATE-5.12-ge4e8b94
Dear all,

 The goal of tclmain is to provide Tcl applications as part of a
package without the need to install the applications in separate folder like
bin. The syntax is `tclmain -p pkgname args ...` to call a function
`pkgname::main argv`.

 I updated to version 0.2.0 which provides support for `pkgname::main
argv` procedure as entry points in addtion to pkgname_main.tcl etc files.

See the README for details.

https://github.com/mittelmark/tclmain

Detlef 

D Groth schrieb am Montag, 30. Januar 2023 um 07:45:20 UTC+1:
> Thanks. 

 > Indeed, the more I code in Python the more I miss this approach
in Tcl, but now it`s there. The tclsh should support this
out-of-the-box `tclsh -m packagename`. 
 > May be the files should be named as well pkgMain.tcl pkgHelp.tcl
pkgDemo.tcl and so on instead of the underline files. This would as well
follow more the Tcl conventions. But that should be easy to implement. 

 > BTW: I just started tclinstall in the same project which allows
you to install Tcl packages using setup.tcl files like this: 

> `tclmain -m tclinstall setup.tcl` 

> Support for just copy the package folder completly will be added as well. 

https://github.com/mittelmark/tclmain/tree/main/lib/tclinstall - WIP 

> Detlef
> Luc schrieb am Samstag, 28. Januar 2023 um 21:13:21 UTC+1: 
> > I really like this idea. Thanks. 
> > 
> > -- 
> > Luc 
> > >> 
> > ************************** 
> > On Sat, 28 Jan 2023 09:43:19 -0800 (PST), D Groth wrote: 
> > 
> > > tclmain is a single Tcl file which supports running of Tcl applications 
> > > directly from the package directory without the need to install them in a 
> > > folder belonging to the users PATH variable. 
> > > 
> > > Homepage: https://github.com/mittelmark/tclmain 
> > > Wikipage for discussion: https://wiki.tcl-lang.org/page/tclmain 
> > > 
> > > The program tclmain provides the same feature as Python with its syntax 
> > > `python -m modulename` does. tclmain looks in the package folder for 
> > > files ending with `_main.tcl` or `_doc.tcl` etc. You can execute this 
> > > files then with the following syntax: 
> > > 
> > > tclmain -m pkgname main 
> > > 
> > > Instead of -m as well -p is supported. 
> > > 
> > > If the package does not provide these files the user can place such files 
> > > as well in its config folder ~/.config/tclmain` on a Unix system. 
> > > 
> > > The advantage in comparison is that there is a unified interface for 
> > > running tcl application for the user. The developer does not need anymore 
> > > an installation of the applications in the users PATH, just installing 
> > > the package is enough. 
> > > 
> > > For more information and examples look at the homepage and at the Wiki 
> > > page. 
> > > 
> > > Best regards, 
> > > Detlef
--- G2/1.0
 * Origin: usenet.network (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх