lib/discourse_theme/cli.rb in discourse_theme-0.7.1 vs lib/discourse_theme/cli.rb in discourse_theme-0.7.2

- old
+ new

@@ -78,17 +78,20 @@ UI.progress "Uploading theme from #{dir}" settings.theme_id = theme_id = uploader.upload_full_theme UI.success "Theme uploaded (id:#{theme_id})" - UI.info "Preview: #{client.root}/?preview_theme_id=#{theme_id}" + UI.info "Preview: #{client.url}/?preview_theme_id=#{theme_id}" + if client.is_theme_creator - UI.info "Manage: #{client.root}/my/themes" + UI.info "Manage: #{client.url}/my/themes" else - UI.info "Manage: #{client.root}/admin/customize/themes/#{theme_id}" + UI.info "Manage: #{client.url}/admin/customize/themes/#{theme_id}" end - watcher = DiscourseTheme::Watcher.new(dir: dir, uploader: uploader) + UI.info "Tests: #{client.url}/theme-qunit?id=#{theme_id}" + + watcher = DiscourseTheme::Watcher.new(dir: dir, uploader: uploader) UI.progress "Watching for changes in #{dir}..." watcher.watch elsif command == "download" client = DiscourseTheme::Client.new(dir, settings, reset: reset) downloader = DiscourseTheme::Downloader.new(dir: dir, client: client)