class RBS::Collection::Config

def self.generate_lockfile(config_path:, definition:, with_lockfile: true)

If `with_lockfile` is true, it respects existing rbs lockfile.
Generate a rbs lockfile from Gemfile.lock to `config_path`.
def self.generate_lockfile(config_path:, definition:, with_lockfile: true)
  config = from_path(config_path)
  lockfile = LockfileGenerator.generate(config: config, definition: definition, with_lockfile: with_lockfile)
  [config, lockfile]
end