Skip to content

Commit

Permalink
better open web page
Browse files Browse the repository at this point in the history
  • Loading branch information
evanbattaglia committed Nov 16, 2024
1 parent 3578552 commit 159427e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tabry/cli/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def open_command
end

def open_web_page(url_or_urls)
unless system("(%s %s 2>&1) >/dev/null", open_command, url_or_urls)
unless system("nohup %s %s 2>&1 >/dev/null &", open_command, url_or_urls)
warn "WARNING: opening web page failed: #{make_cmdline("%s %s", open_command, url)}"
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/tabry/cli/util/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# Config = Tabry::CLI::Util::Config.new('~/.mycli.yml')
# end

# TODO: should probably now just remove this

class Hash
def to_openstruct
JSON.parse to_json, object_class: OpenStruct
Expand Down

0 comments on commit 159427e

Please sign in to comment.