Skip to content

Commit bdaecf0

Browse files
Merge pull request #103 from RodrigoMNardi/doc/adding_doc
README.md
2 parents 38fe0b2 + c8a128e commit bdaecf0

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

.github/workflows/ruby.yml

+4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ name: Ruby
1010
on:
1111
push:
1212
branches: [ "master" ]
13+
paths-ignore:
14+
- 'README.md'
1315
pull_request:
1416
branches: [ "master", "develop" ]
17+
paths-ignore:
18+
- 'README.md'
1519

1620
permissions:
1721
contents: read

README.md

+74
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,77 @@ If you need to uninstall RVM, you can do so with the following command:
208208
```shell
209209
rvm implode
210210
```
211+
212+
# Console
213+
214+
The bin/console script allows you to interact with the application in an interactive Ruby (IRB) session.
215+
This can be useful for debugging, running commands, and interacting with the application's models and database.
216+
217+
## Available Commands
218+
219+
- find_organization(name)
220+
- Description: Finds an organization by its name.
221+
- Parameters:
222+
- name: The name of the organization to find.
223+
224+
- create_organization(name, attributes = {})
225+
- Description: Creates a new organization with the given attributes.
226+
- Parameters:
227+
- name: The name of the organization to create.
228+
- attributes: A hash of attributes for the organization.
229+
- contact_email: The contact email of the organization (string).
230+
- contact_name: The contact name of the organization (string).
231+
- url: The URL of the organization (string).
232+
233+
- edit_organization(name, attributes = {})
234+
- Description: Edits an existing organization with the given attributes.
235+
- Parameters:
236+
- name: The name of the organization to edit.
237+
- attributes: A hash of attributes to update for the organization.
238+
- contact_email: The contact email of the organization (string).
239+
- contact_name: The contact name of the organization (string).
240+
- url: The URL of the organization (string).
241+
242+
- find_github_user(login)
243+
- Description: Finds a GitHub user by their login.
244+
- Parameters:
245+
- login: The GitHub login of the user to find.
246+
247+
- add_user_in_organization(login, organization_name)
248+
- Description: Adds a GitHub user to an organization.
249+
- Parameters:
250+
- login: The GitHub login of the user to add.
251+
- organization_name: The name of the organization to add the user to.
252+
253+
- remove_user_from_organization(login)
254+
- Description: Removes a GitHub user from their organization.
255+
- Parameters:
256+
- login: The GitHub login of the user to remove.
257+
258+
- add_github_user_slack_user(github_login, slack_user)
259+
- Description: Links a GitHub user to a Slack user.
260+
- Parameters:
261+
- github_login: The GitHub login of the user to link.
262+
- slack_user: The Slack username to link to the GitHub user.
263+
264+
Examples
265+
- Find an organization by name:
266+
- find_organization('NetDEF')
267+
-
268+
- Create a new organization:
269+
- create_organization('NetDEF', contact_name: 'Rodrigo Nardi')
270+
271+
- Edit an existing organization:
272+
- edit_organization('NetDEF', contact_name: 'Martin Winter')
273+
274+
- Find a GitHub user by login:
275+
- find_github_user('rodrigonardi')
276+
277+
- Add a user to an organization:
278+
- add_user_in_organization('rodrigonardi', 'NetDEF')
279+
280+
- Remove a user from an organization:
281+
- remove_user_from_organization('rodrigonardi')
282+
283+
- Link a GitHub user to a Slack user:
284+
- add_github_user_slack_user('rodrigonardi', 'slack_user')

0 commit comments

Comments
 (0)