structor icon indicating copy to clipboard operation
structor copied to clipboard

How to use

Open amber-moe opened this issue 6 years ago • 8 comments

I'm struggling with the README. I don't know how to use this amazing tool. Could you please write me a detailed tutorial?

amber-moe avatar Jan 03 '20 09:01 amber-moe

Hello,

I recommend to take a look to this repo: https://github.com/mmatur/structor-sample

ldez avatar Jan 03 '20 11:01 ldez

I don't have the time to create a detailed tutorial, but I improved the documentation:

  • https://github.com/containous/structor#prerequisites
  • https://github.com/containous/structor#description

Give me some feedback if it's better or not.

As "workaround", you can try and ask questions, and maybe you will write the first detailed tutorial of Structor :smiley:

ldez avatar Jan 03 '20 17:01 ldez

Thanks for your kind reply. I'll try your example and feedback with a doc if possible. Actually, I'm kinda confusing if this is a software or an environment. I don't know how to install.

amber-moe avatar Jan 06 '20 06:01 amber-moe

It's a software, you can download it from GitHub:

  • https://github.com/containous/structor/releases

There is a CI integration example here:

  • https://github.com/containous/structor#download--ci-integration

ldez avatar Jan 06 '20 07:01 ldez

I downloaded the structor_v1.10.0_darwin_amd64.tar.gz version and unzipped it but my mac reminds me zsh: command not found: structor.

amber-moe avatar Jan 06 '20 08:01 amber-moe

Either you have to add the binary to your PATH or run the binaries "in place" ./structor.

ldez avatar Jan 06 '20 08:01 ldez

add the binary to your PATH, did you mean this?

sudo curl -sfL https://raw.githubusercontent.com/containous/structor/master/godownloader.sh | bash -s -- -b /usr/local/go/bin v1.10.0
Password:
containous/structor info checking GitHub for tag 'v1.10.0'
containous/structor info found version: 1.10.0 for v1.10.0/darwin/amd64

but still nothing happens

structor help
zsh: command not found: structor

amber-moe avatar Jan 06 '20 09:01 amber-moe

PATH is an environment variables: https://en.wikipedia.org/wiki/Environment_variable#True_environment_variables

The command that you executed require that /usr/local/go/bin be defined in your PATH

ldez avatar Jan 06 '20 11:01 ldez