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]
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> 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