Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to add news story with cli command. #14

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

darron
Copy link
Owner

@darron darron commented Oct 22, 2023

So that I can update Records with new News Stories and keep things updated.

It works like this:

➜  ff git:(main) ✗ bin/ff send news --record 1f4d9319-570c-4f24-b8e4-8378ff0530eb --news https://kamal-deploy.org/docs/installation
time=2023-10-21T19:35:00.931-06:00 level=DEBUG msg=sendNewsStory url=http://localhost:8080/api/v1/stories
time=2023-10-21T19:35:00.931-06:00 level=DEBUG msg=sendNewsStory newsStory="{\"id\":\"\",\"record_id\":\"1f4d9319-570c-4f24-b8e4-8378ff0530eb\",\"url\":\"https://kamal-deploy.org/docs/installation\",\"body_text\":null,\"ai_summary\":null}"
time=2023-10-21T19:35:00.937-06:00 level=INFO msg="\"34e9a591-991b-42fa-b50a-1908cf53b327\"\n"

We can see the URL added at the bottom of the screen:

Screenshot 2023-10-21 at 19 37 50

@darron darron merged commit c0b78bf into main Oct 22, 2023
@darron darron deleted the add-news-story-cli-command branch October 22, 2023 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant