General TC > Programming & Scripting - Unofficial

executable autocompleteable "tcz.info" extension files (links to script)

(1/1)

mocore:
the idea create busybox like links from tcz.sh to each "*.tcz.info"

tcz.sh read name of linked file and *do things* ?? list info , load?? ,ect

why because tce-load $options $tcz_name is less "user friendly" UX !!!
this allows auto completion from core / terminal !!

better than adding shell sections to plain text
eg https://forum.tinycorelinux.net/index.php/topic,27467.msg176890.html#msg176890



file:tcz.sh

--- Code: ---
x_file=$( basename $0 )

tar_path="./14.x/x86/tcz/"

echo -e "\$0=" $0 "\nfile:" $x_file

for xarg in "${@}" ; do

 case  "$xarg" in
  i|info) tar -xf ../14-info.tar  ./14.x/x86/tcz/$x_file -O ;;
  #l|load)
  *) echo "unknow arg: $xarg" ;;
 esac
done

# mkdir ~/test
# cd ~/test
# rsync --mkpath -a -R   "repo.tinycorelinux.net::tc//14.x/x86/tcz/*.info" ./
# tar -cf 14-info.tar ./14.x/
# PATH="$PATH:$PWD"
# tar -tf ../14-info.tar |while read tcz ; do t=$(basename $tcz ); ln -fs tcz.sh $t ; done
# touch info.sh
# cat $0 >./info.sh # ;P
# or copy the content of this file to path
# run the commands in the comments
# adjust path of info.tar in this script!!


--- End code ---


thoughts / testers / improvements ?

Leee:
I've been toying with the idea of a CHUI application similar to the GUI "apps" tool and it would provide access to the .info (and .dep and .list and .tree) files.  The project is not currently very high priority on my to-do list and it's still very much in the "thinking about it stage" - I wouldn't even say "design stage" yet.

---
I've already scripted up the downloading of extensions in batch mode for use in new installs and version upgrades so wrapping a UI around it doesn't sound like it would be that huge of a deal... but I've done a similar UI for another project and it's actually kind of a PITA.
The script, tce-lode, downloads extensions (and the base OS, if desired) with a few options (with sane-ish defaults) that the real tce-load doesn't seem to offer:
* where to download to
* where to download from
* download protocol (http / gtp)
* What Tiny Core version (default 15.x)
* What release status (release / release_candidate)
* What kernel version (defaults per internal lookup table)
* Architecture (x86 / x86_64)
* What wiles to download (defaults to all of .tcz .md5.txt .info .list .dep and .tree)Along with adding a browsing-capable UI, it would be fairly simple to pre-download all of the .info files or, i suppose, have it fetch them on the fly.

mocore:

fwiw:*bleary-eyed* ...

wrt symbolic links

"How much space does a symlink consume?" @ https://forum.tinycorelinux.net/index.php/topic,27430.msg176632.html#msg176632

i guess it could be possible to calculate / quantify ...  reduce?
  the space used by sym-linking  extension .info file names to a script

mocore:

--- Quote from: Leee on January 02, 2025, 10:05:25 PM ---I've been toying with the idea of a CHUI application similar to the GUI "apps" tool and it would provide access to the .info (and .dep and .list and .tree) files.

--- End quote ---

@leee
... i had to look up " CHUI " ! tbh  :o

did you see "tinycommander " https://forum.tinycorelinux.net/index.php/topic,27467.0.html


--- Quote from: Leee on January 02, 2025, 10:05:25 PM ---
I've already scripted up the downloading of extensions in batch mode for use in new installs and version upgrades so wrapping a UI around it doesn't sound like it would be that huge of a deal... but I've done a similar UI for another project and it's actually kind of a PITA.


--- End quote ---
sounds interesting 
... if any user input / testing would be helpful     
( in reducing the PITA factor )

Leee:

--- Quote from: mocore on February 13, 2025, 02:29:32 AM ---
--- Quote from: Leee on January 02, 2025, 10:05:25 PM ---I've been toying with the idea of a CHUI application similar to the GUI "apps" tool and it would provide access to the .info (and .dep and .list and .tree) files.

--- End quote ---

@leee
... i had to look up " CHUI " ! tbh  :o

did you see "tinycommander " https://forum.tinycorelinux.net/index.php/topic,27467.0.html


--- Quote from: Leee on January 02, 2025, 10:05:25 PM ---
I've already scripted up the downloading of extensions in batch mode for use in new installs and version upgrades so wrapping a UI around it doesn't sound like it would be that huge of a deal... but I've done a similar UI for another project and it's actually kind of a PITA.


--- End quote ---
sounds interesting 
... if any user input / testing would be helpful     
( in reducing the PITA factor )

--- End quote ---
I did see the tinycommander post but didn't pay much attention to it at the time.
I've been down a bunch of rabbit holes lately but when I get back to the character-UI apps tool I'll post it here.
In the mean time, the downloader script (tce-lode, mentioned previously) served well for downloading 16.0alpha1, both the boot files and extensions while running under 15.0 with as simple of a command line as
--- Code: ---tce-lode --get-core --get-list=/tce/onboot.lst
--- End code ---
the script interactively prompts for a bunch of parameters at run time.

Navigation

[0] Message Index

Go to full version