@@ -208,3 +208,77 @@ If you need to uninstall RVM, you can do so with the following command:
208208` ` ` shell
209209rvm 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