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

Feature: Support multiple "profiles" #1

Open
twavv opened this issue Nov 21, 2021 · 0 comments
Open

Feature: Support multiple "profiles" #1

twavv opened this issue Nov 21, 2021 · 0 comments

Comments

@twavv
Copy link
Contributor

twavv commented Nov 21, 2021

Currently we embed all the information about a codex in the codex.toml file (including which course/codex category it belongs to).

One idea might to be have multiple profiles:

# Upload the same codex to two different courses
pbauthor codex upload --profile stats123-f21 .
pbauthor codex upload --profile stats456-f21 .

This doesn't perfectly answer which codex category to choose, but we could build in logic that says "if was already uploaded to this course, find the category it was uploaded to and replace that one, otherwise prompt which category to upload to":

# On first upload
$ pbauthor codex upload --profile stats123-f21 .
Uploading "Intro to R" to course "Statistics for Undergrads"...
Choose category:
  [*] Lecture
  [ ] Homework

$ pbauthor codex upload --profile stats123-f21 .
Uploading "Intro to R" to course "Statistics for Undergrads"...
Replacing codex in category "Lecture"... [y/n/c]

We'd still have to store some kind of deduplication key in the codex.toml file.

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

No branches or pull requests

1 participant