beam/examples/beamsh: move code around for readability
beam/examples/beamsh: move code around for readability

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)

joeuo/docker.github.io,schmunk42/swarm,denverdino/denverdino.github.io,bpradipt/swarm,phiroict/docker,docker-zh/docker.github.io,denverdino/denverdino.github.io,ehazlett/swarm,ealang/swarm,pssahi/swarm,allencloud/swarm,jimmycmh/swarm,phiroict/docker,francisbouvier/swarm,pssahi/swarm,linecheng/swarm,denverdino/swarm-1,snrism/swarm,everett-toews/swarm,zkcrescent/swarm,jzwlqx/denverdino.github.io,shubheksha/docker.github.io,denverdino/docker.github.io,CiaranCostello/swarm,bpradipt/swarm,aidora/pisces,shot/swarm,megamsys/swarm,srikalyan/swarm,CiaranCostello/swarm,rchicoli/swarm,dims/swarm,menglingwei/denverdino.github.io,denverdino/docker.github.io,marsmensch/swarm,marsmensch/swarm,menglingwei/denverdino.github.io,londoncalling/docker.github.io,BSWANG/denverdino.github.io,auzias/swarm,errordeveloper/swarm,alexisbellido/docker.github.io,atlassian/swarm,mrjana/swarm,aduermael/docker.github.io,denverdino/docker.github.io,gdevillele/docker.github.io,alexisbellido/docker.github.io,atlassian/swarm,unodba/swarm,shot/swarm,bsmr-docker/swarm,qianzhangxa/swarm,Spritekin/swarm,kyhavlov/swarm,LuisBosquez/docker.github.io,joeuo/docker.github.io,gonkulator/swarm,swarm-hooks/swarm,rav121/swarm,MHBauer/swarm,qianzhangxa/swarm,bsmr-docker/swarm,FreedomWangLi/swarm,bdwill/docker.github.io,dims/swarm,alexisbellido/docker.github.io,adouang/swarm,unodba/swarm,joeuo/docker.github.io,echupriyanov/swarm,bdwill/docker.github.io,akerbis/armhf-swarm,jdamick/swarm,errordeveloper/swarm,jimenez/swarm,docker-zh/docker.github.io,ejholmes/swarm,bdwill/docker.github.io,denverdino/swarm,liubin/swarm,chanwit/swarm,sanscontext/docker.github.io,rillig/docker.github.io,ezrasilvera/swarm,ezrasilvera/swarm,danix800/docker.github.io,FollowMyDev/swarm,BSWANG/swarm,deis/swarm,LukasBacigal/swarm,docker-zh/docker.github.io,menglingwei/denverdino.github.io,sanscontext/docker.github.io,MHBauer/swarm,jay-lau/swarm,NunoEdgarGub1/swarm,abronan/swarm,doronp/swarm,anweiss/docker.github.io,ch3lo/swarm,jdamick/swarm,tnachen/swarm,gdevillele/docker.github.io,adouang/swarm,polyverse-security/swarm,u2mejc/swarm,tangkun75/swarm,BSWANG/denverdino.github.io,shubheksha/docker.github.io,moxiegirl/swarm,rajdeepd/swarm,troy0820/docker.github.io,allencloud/swarm,joeuo/docker.github.io,jzwlqx/denverdino.github.io,bdwill/docker.github.io,docker/docker.github.io,joaofnfernandes/docker.github.io,JimGalasyn/docker.github.io,vlajos/swarm,jimmyxian/swarm,JimGalasyn/docker.github.io,iaintshine/swarm,liubin/swarm,rajdeepd/swarm,mgoelzer/swarm,LuisBosquez/docker.github.io,u2mejc/swarm,docker/docker.github.io,affo/swarm,bdwill/docker.github.io,rillig/docker.github.io,doronp/swarm,sfsmithcha/swarm,shin-/docker.github.io,troy0820/docker.github.io,shakamunyi/swarm,jzwlqx/denverdino.github.io,docker/docker.github.io,shahankhatch/swarm,anweiss/docker.github.io,echupriyanov/swarm,barais/swarm,jzwlqx/denverdino.github.io,ehazlett/swarm,docker-zh/docker.github.io,moxiegirl/swarm,alexisbellido/docker.github.io,akerbis/armhf-swarm,kunalkushwaha/swarm,CodeNow/swarm,everett-toews/swarm,joaofnfernandes/docker.github.io,FreedomWangLi/swarm,FollowMyDev/swarm,iaintshine/swarm,denverdino/swarm,BSWANG/denverdino.github.io,londoncalling/docker.github.io,thaJeztah/docker.github.io,aduermael/docker.github.io,parapsyche/swarm,vieux/swarm,rancher/swarm,megamsys/swarm,pdevine/swarm,sanscontext/docker.github.io,anweiss/docker.github.io,cgvarela/swarm,resouer/swarm,srikalyan/swarm,Aorjoa/swarm,rav121/swarm,cpuguy83/swarm,krystism/swarm,yp-engineering/swarm,shin-/docker.github.io,CodeNow/swarm,danix800/docker.github.io,LuisBosquez/docker.github.io,raoofm/swarm,gdevillele/docker.github.io,francisbouvier/swarm,parapsyche/swarm,thaJeztah/docker.github.io,cpuguy83/swarm,BSWANG/swarm,anweiss/docker.github.io,sanscontext/docker.github.io,shubheksha/docker.github.io,jay-lau/swarm,tranceitionalMynd/swarm,SivagnanamCiena/swarm,jimenez/swarm,londoncalling/docker.github.io,tranceitionalMynd/swarm,gdevillele/docker.github.io,rillig/docker.github.io,denverdino/docker.github.io,PeoplePerHour/libswarm,shin-/docker.github.io,londoncalling/docker.github.io,vlajos/swarm,yp-engineering/swarm,LuisBosquez/docker.github.io,Spritekin/swarm,alexisbellido/docker.github.io,ch3lo/swarm,xFragger/swarm,sanscontext/docker.github.io,chanwit/swarm,resouer/swarm,danix800/docker.github.io,gradywang/swarm,swarm-hooks/swarm,londoncalling/docker.github.io,rutulpatel/swarm,EderRoger/swarm,jimmyxian/swarm,pdevine/swarm,dnephin/swarm,fugr/swarm,bfirsh/swarm,LuisBosquez/docker.github.io,kunalkushwaha/swarm,denverdino/denverdino.github.io,gonkulator/swarm,johnstep/docker.github.io,therealbill/swarm,abronan/swarm,rancher/swarm,linecheng/swarm,therealbill/swarm,schmunk42/swarm,bfirsh/swarm,rutulpatel/swarm,ricca742/swarm,morpheyesh/swarm,joeuo/docker.github.io,affo/swarm,shubheksha/docker.github.io,mgoelzer/swarm,troy0820/docker.github.io,gradywang/swarm,denverdino/denverdino.github.io,thaJeztah/docker.github.io,docker/docker.github.io,phiroict/docker,phiroict/docker,christophelec/swarm,raoofm/swarm,polyverse-security/swarm,docker/docker.github.io,NunoEdgarGub1/swarm,fugr/swarm,jeffjen/swarm,deis/swarm,snrism/swarm,beni55/swarm-1,aidora/pisces,menglingwei/denverdino.github.io,rchicoli/swarm,riuvshin/swarm,ricca742/swarm,JimGalasyn/docker.github.io,aluzzardi/swarm,thaJeztah/docker.github.io,BSWANG/denverdino.github.io,Aorjoa/swarm,kyhavlov/swarm,morpheyesh/swarm,joaofnfernandes/docker.github.io,gdevillele/docker.github.io,JimGalasyn/docker.github.io,zkcrescent/swarm,xFragger/swarm,joaofnfernandes/docker.github.io,ezrasilvera/SwarmACLs,shin-/docker.github.io,barais/swarm,mountkin/swarm,cgvarela/swarm,mrjana/swarm,johnstep/docker.github.io,LukasBacigal/swarm,sfsmithcha/swarm,JimGalasyn/docker.github.io,ezrasilvera/SwarmACLs,vieux/swarm,menglingwei/denverdino.github.io,beni55/swarm-1,troy0820/docker.github.io,danix800/docker.github.io,tangkun75/swarm,BSWANG/denverdino.github.io,SivagnanamCiena/swarm,aduermael/docker.github.io,anweiss/docker.github.io,docker-zh/docker.github.io,ejholmes/swarm,tnachen/swarm,krystism/swarm,ealang/swarm,EderRoger/swarm,shubheksha/docker.github.io,dnephin/swarm,johnstep/docker.github.io,thaJeztah/docker.github.io,johnstep/docker.github.io,shin-/docker.github.io,rillig/docker.github.io,mavenugo/swarm,aluzzardi/swarm,jzwlqx/denverdino.github.io,denverdino/docker.github.io,denverdino/swarm-1,johnstep/docker.github.io,mountkin/swarm,riuvshin/swarm,auzias/swarm,jimmycmh/swarm,mavenugo/swarm,aduermael/docker.github.io,PeoplePerHour/libswarm,shakamunyi/swarm,joaofnfernandes/docker.github.io,jeffjen/swarm,christophelec/swarm,phiroict/docker,denverdino/denverdino.github.io,shahankhatch/swarm