You’re not the first one with this idea.
Are you aware of GitHub - nedpals/sharn: Managing shards made easier. ?
Also relevant is the upstream issue: shards add/get · Issue #144 · crystal-lang/shards · GitHub
Unfortunately, nobody has yet implemented this in a way that it preserves the YAML layout without removing comments and extra whitespace, for example.
1 Like