Sha256: 10fdd86d1411e5ad8aa98370b56f08923c1a49e1264ee0d5f2112a64b3cd506c
Contents?: true
Size: 772 Bytes
Versions: 1
Compression:
Stored size: 772 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'bundler/setup' require 'cosensee' require 'console' require 'dotenv' Dotenv.load logger = Console.logger option = Cosensee::CLI::Parser.parse(ARGV) exit 1 if option.failed? if option.init? Cosensee::CLI::Initializer.new(option:, logger:).run exit 0 end begin content_generator = Cosensee::WebContentGenerator.new(option:, renderer_class: Cosensee::TailwindRenderer, logger:, sid: ENV['CONNECT_SID']) content_generator.generate rescue Cosensee::WebContentGenerator::Error => e logger.error "Error: #{e.message}" exit 1 end exit 0 unless option.server? web_server = Cosensee::WebServer.new( dir: option.output_dir, server_url: "http://localhost:#{option.port}", logger: ) web_server.start
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cosensee-0.8.0 | exe/cosensee |