octotui icon indicating copy to clipboard operation
octotui copied to clipboard

Add config option for default GitHub user/organization

Open spenserblack opened this issue 3 years ago • 1 comments

This adds a config value in a file called default_owner. The config value is in the format name:type, where name is the user or organization, and type is either user or org. octotui will attempt to read from this config file if the search subcommand is not used. If the config value is not set, then the user is instructed to either fill in this config value or use the search subcommand.

Some other changes this PR makes:

  • Refactors code so that most of the logic from LoadToken is moved into a more generic function loadConfigFile
  • Fixes bug where octotui would fail early if the config folder exists, but not the config file
  • Made renderUser and renderOrganization public functions

Resolves #5

spenserblack avatar Apr 20 '21 12:04 spenserblack

hit me up in Discord: lya Revenko#4742

irevenko avatar May 28 '21 19:05 irevenko

Cleaning up old PRs and forks. Will probably delete the fork soon, but the refs in this PR should still be reachable via refs/pull/NUMBER/head.

spenserblack avatar Dec 08 '22 00:12 spenserblack