Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

[idea] IDE cog #5

Open
Chovin opened this issue Apr 20, 2017 · 0 comments
Open

[idea] IDE cog #5

Chovin opened this issue Apr 20, 2017 · 0 comments

Comments

@Chovin
Copy link
Collaborator

Chovin commented Apr 20, 2017

For use on locally hosted bot
Snippets in popular editors + how to install them (for now. Later, actual plugins that integrate with the editor and the bot)

+ IDE-type commands

Overview:

!new-cog - creates cog with boilerplate (+empty info.json). creates in linked repo (or asks if multiple) (in dev branch?) symlinked to cogs folder. Open dev env (cog in preferred editor
!edit-cog - create dev branch. If not yours, fork and clone. symlink. Open in editor
!open-repo - opens github repo
!which - displays info about repo and author
!open-cog - opens cog (+ repo if on system) in editor
!info-json - interactive info.json maker/previewer
!publish - publishes cog to appropriate repo/(fork + opens github PR URL)
!issue - opens URL for new issue in corresponding repo


UI/Functionality ideas:

!new-cog [name="untitled-#"] [branch=None]

  • branch creation default behavior set in settings

!edit-cog [branch=None]
!open-repo [cog_or_repo_or_command: str=None]

  • Given a name of cog/repo/command, open github URL. If none, open previously linked repo (previously checked out one of multiple)

!which <cog_or_or_command>

  • Display info about the repo (author) and cog and repo's last updated time

!open-cog <cog_or_command>
!info-json [cog=None]

  • Completely interactive. defaults to repo/cog selection screen in which it also marks cogs with incomplete info.jsons

!publish [to_branch=None] [from_branch=None]

  • merge cog's from_branch to to_branch (default master) if needed push to repo (if fork, open URL to create new PR from fork to master repo)

!issue <cog_or_repo_or_command>

  • Opens URL to create new issue at corresponding repo

###Other thoughts:
Virtualenv?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant