ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
Sankalp has quit [Ping timeout: 252 seconds]
Sankalp has joined #crystal-lang
irc_user has quit [Quit: Connection closed for inactivity]
renich has quit [Quit: Leaving]
Sankalp has quit [Ping timeout: 268 seconds]
Sankalp has joined #crystal-lang
irc_user has joined #crystal-lang
jrayhawk_ is now known as jrayhawk
<FromGitter> <leelavg> @Blacksmoke16 thanks for chiming in, I wasn't able to comprehend some of what you said (.. valid overload ..) however I need to educate myself on some of these concepts and get back with correct questions :)
_ht has joined #crystal-lang
irc_user has quit [Quit: Connection closed for inactivity]
ur5us has joined #crystal-lang
SamantazFox has quit [Remote host closed the connection]
SamantazFox has joined #crystal-lang
<FromGitter> <Blacksmoke16> that might help
<FromGitter> <leelavg> ack.
jmdaemon has quit [Ping timeout: 268 seconds]
jmdaemon has joined #crystal-lang
renich has joined #crystal-lang
irc_user has joined #crystal-lang
ur5us has quit [Ping timeout: 255 seconds]
_ht has quit [Remote host closed the connection]
irc_user has quit [Quit: Connection closed for inactivity]
<FromGitter> <threez> I‘m working on a shard an wish there was a „crystal spec —watch“. That wokld execute the specs after a file changed, how do you do that?
_Votes78 has joined #crystal-lang
renich has quit [Ping timeout: 268 seconds]
<FromGitter> <straight-shoota> You can just use any file watcher command for that. For example `entr`, `watchexec` or `sentry` (the latter is actually implemented in Crystal: https://shardbox.org/shards/sentry)
<FromGitter> <Blacksmoke16> https://www.npmjs.com/package/nodemon works quite well if you happen to have `npm` installed
<FromGitter> <Blacksmoke16> i setup an alias with it `alias wcr-spec="nodemon --ext '*' -I --exec crystal spec --watch spec --watch src -- --order=random"` then can do `wcr-spec` and will rerun specs whenever you chance a spec or source file
<FromGitter> <Blacksmoke16> `alias wcr="nodemon --exec crystal run --watch src $1"` is also a good one to watch a specific file and re-run on chance to source files. e.g. `wcr src/main.cr`
<FromGitter> <Blacksmoke16> no need for any config file or something