addshore
08/14/2025, 2:32 PMsh
mkdir my-x-project
cd my-x-project
jag pkg init
jag pkg install github.com/x-io/toit-x
then
sh
cp ./.packages/github.com/x-io/toit-x/v0.1.1/examples/eink.toit ./main.toit
But I dont want to hardcode v0.1.1
Is there already a command I am missing that might say what is installed and being used by the project?addshore
08/14/2025, 2:33 PMls ./.packages/github.com/x-io/toit-x/ | sort -V | tail -n 1 is the best i can some up with, but a bit evil, and techncially the highest thing on disk may not be what is used..?floitsch
08/14/2025, 2:33 PMfloitsch
08/14/2025, 2:35 PMfloitsch
08/14/2025, 2:35 PMfloitsch
08/14/2025, 2:40 PMbuilder.join(package_dirs[i]);
builder.join(entry.url);
builder.join(entry.version);floitsch
08/14/2025, 2:41 PMaddshore
08/14/2025, 2:49 PMVERSION=$(jag pkg search lightbug-io/toit-lightbug | awk '{print $3}') 😛addshore
08/14/2025, 2:50 PMfloitsch
08/14/2025, 2:53 PMtoit pkg.floitsch
08/14/2025, 2:53 PM