Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

feat: add archive command #205

Merged
merged 5 commits into from
Aug 25, 2021
Merged

feat: add archive command #205

merged 5 commits into from
Aug 25, 2021

Conversation

abtris
Copy link
Contributor

@abtris abtris commented Aug 24, 2021

New command list all yours API project in Apiary and save them to local file in folder where you execute command.

apiary archive 

File ended as apib - don't detect if is Swagger or API Blueprint

@abtris abtris requested a review from opichals August 24, 2021 19:38
README.md Outdated
apiary archive

Options:
[--output=FILE] # Write API Description Document into specified file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I read the code correctly this doesn't seem to be supported.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will try remove this option.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think that make sense make some output path option there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this option now.

@abtris abtris requested a review from opichals August 25, 2021 13:06
README.md Outdated
@@ -57,7 +57,7 @@ export APIARY_API_KEY=<your_token>
```
$ apiary help
Commands:
apiary archive # Archive All Your API Description Documents from apiary.io
apiary archive # Archive All Your API Description Documents from apiary.io. Going to be written to files named as API project subdomain.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
apiary archive # Archive All Your API Description Documents from apiary.io. Going to be written to files named as API project subdomain.
apiary archive # Archive All Your API Description Documents from apiary.io to local files named following [api-project-subdomain.apib] pattern.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, this is better, updating.

Copy link
Contributor

@opichals opichals left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@abtris abtris merged commit 5ab038f into master Aug 25, 2021
@abtris abtris deleted the abtris/archive branch August 25, 2021 16:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants