obelisk icon indicating copy to clipboard operation
obelisk copied to clipboard

Add support for specifying a path for archive resources

Open waybackarchiver opened this issue 3 years ago • 4 comments

It is proposed the flag be marked -directory and the short flag -d.

waybackarchiver avatar Feb 20 '22 04:02 waybackarchiver

I believe this is already achieved via the --output option. From the README (emphasis mine):

  • If --output flag is not specified then Obelisk will generate file name for the archive and save it in current working directory.
  • If --output flag is set to - and there is only one URL to process (either from input file or from CLI arguments) then the default output will be stdout.
  • If --output flag is specified but there are more than one URL to process, Obelisk will generate file name for the archive, but keep using the directory from the specified output path.
  • If --output flag is specified but it sets to an existing directory, Obelisk will also generate file name for the archive.

Example usage:

obelisk "https://philipptanlak.com/web-frontends-in-go" --output blogs/go-frontend.html

abhijit-hota avatar May 15 '22 06:05 abhijit-hota

I believe this is already achieved via the --output option. From the README (emphasis mine):

  • If --output flag is not specified then Obelisk will generate file name for the archive and save it in current working directory.
  • If --output flag is set to - and there is only one URL to process (either from input file or from CLI arguments) then the default output will be stdout.
  • If --output flag is specified but there are more than one URL to process, Obelisk will generate file name for the archive, but keep using the directory from the specified output path.
  • If --output flag is specified but it sets to an existing directory, Obelisk will also generate file name for the archive.

Example usage:

obelisk "https://philipptanlak.com/web-frontends-in-go" --output blogs/go-frontend.html

You are right. The --output flag is used to archive a single file but separate files with Archiver.WrapDirectory.

waybackarchiver avatar May 15 '22 06:05 waybackarchiver

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Sep 17 '22 04:09 github-actions[bot]

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Jan 21 '23 03:01 github-actions[bot]