Skip to content

Conversation

@taiakindaniil
Copy link

@taiakindaniil taiakindaniil commented Dec 24, 2022

I've added toncli-docker file that makes TON dev process w/ docker in more convenient way. Add toncli-docker to /usr/local/bin to access it from anywhere.

There is no need to write big commands with redundant construction like docker run --rm -it -v ~/Dev/test_project:/code ... and so on. It's just a simple way:

toncli-docker start --name test_project wallet 

In common:

toncli-docker <toncli-command>

@Trinketer22
Copy link
Owner

Awesome!
Idea of making some sort of convenient script wrapper been there for a looong time.
Really glad someone actually did it.
I think it would be even better to not having to specify config path unless user actually wants to do it.
Because 9/10 times we just want $HOME/.config in here
Ideally some getopts like -config should be possible for any kind of command to specify config path if necessary.
Otherise else branch looks pretty limiting on what we can do.
Thing is having persistent state might be beneficial in many different commands besides deploy and libs update.

@Trinketer22
Copy link
Owner

Maybe even having default config path passed in every command unless explicitly specified otherwise, is not a bad idea.

@taiakindaniil
Copy link
Author

taiakindaniil commented Dec 26, 2022

So, I've added support for permanently variables. Now, the deployment stuff is saved in ~/.toncli-deploy by default. But developer can change dir running this command:

toncli-docker --set-deployment-path /your/custom/path

@Trinketer22
Copy link
Owner

Thanks a lot!
Permanent storage move looks way too complicated to me though.
I'll test it out and let you know about results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants