Class: Wikiwiki::CLI::Commands::Attachment::Delete
- Defined in:
- lib/wikiwiki/cli/commands/attachment/delete.rb
Overview
Delete attachment from a page
Instance Method Summary collapse
-
#call(page_name:, file_name:, out: $stdout, err: $stderr) ⇒ void
Execute the delete command.
Instance Method Details
#call(page_name:, file_name:, out: $stdout, err: $stderr) ⇒ void
This method returns an undefined value.
Execute the delete command
21 22 23 24 25 26 27 |
# File 'lib/wikiwiki/cli/commands/attachment/delete.rb', line 21 def call(page_name:, file_name:, out: $stdout, err: $stderr, **) wiki = create_wiki(out:, err:, **) wiki.(page_name:, attachment_name: file_name) say("Attachment '#{file_name}' deleted from page '#{page_name}'", out:, **) end |