Sha256: ba45544d388945bb89c2dded8685e2d43556e59a4d7613c2583950d73dcd0b29

Contents?: true

Size: 840 Bytes

Versions: 18

Compression:

Stored size: 840 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift(File.expand_path('../lib', __dir__))

require 'appydave/tools'

options = {
  sequence: nil,
  debug: false
}

OptionParser.new do |opts|
  opts.banner = 'Usage: youtube_automation.rb [options]'

  opts.on('-s', '--sequence SEQUENCE', 'Sequence number (e.g., 01-1)') do |sequence|
    options[:sequence] = sequence
  end

  opts.on('-d', '--debug', 'Enable debug mode') do
    options[:debug] = true
  end

  opts.on_tail('-h', '--help', 'Show this message') do
    puts opts
    exit
  end
end.parse!

if options[:sequence].nil?
  puts 'Error: Sequence number is required. Use -h for help.'
  exit 1
end

Appydave::Tools::Configuration::Config.configure

automation = Appydave::Tools::YoutubeAutomation::GptAgent.new(options[:sequence], options[:debug])
automation.run

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
appydave-tools-0.11.9 bin/youtube_automation.rb
appydave-tools-0.11.8 bin/youtube_automation.rb
appydave-tools-0.11.7 bin/youtube_automation.rb
appydave-tools-0.11.6 bin/youtube_automation.rb
appydave-tools-0.11.5 bin/youtube_automation.rb
appydave-tools-0.11.4 bin/youtube_automation.rb
appydave-tools-0.11.3 bin/youtube_automation.rb
appydave-tools-0.11.2 bin/youtube_automation.rb
appydave-tools-0.11.1 bin/youtube_automation.rb
appydave-tools-0.11.0 bin/youtube_automation.rb
appydave-tools-0.10.4 bin/youtube_automation.rb
appydave-tools-0.10.3 bin/youtube_automation.rb
appydave-tools-0.10.2 bin/youtube_automation.rb
appydave-tools-0.10.1 bin/youtube_automation.rb
appydave-tools-0.10.0 bin/youtube_automation.rb
appydave-tools-0.9.5 bin/youtube_automation.rb
appydave-tools-0.9.4 bin/youtube_automation.rb
appydave-tools-0.9.3 bin/youtube_automation.rb