Comments (3)
I ideally want to avoid synchronicity in Komac because having to wait for something to complete doesn't feel like a great user experience. Yamlcreate has this for a second or so as it retrieves all the schemas when it's first ran, so I want to avoid having anything blocking that does the same.
For token validity checks, I've adjusted it in a197424:
There are now 2 "breakpoints" during the Package Identifier prompt. The first one checks whether there is a currently stored token, as this can be retrieved fairly quickly from Windows Credentials. If there isn't the user is prompted for it before the Package Identifier prompt. The second one is after the Package Identifier prompt and checks whether it's valid. If it's not the user will be prompted for a new token.
This is because retrieving the token takes a very small amount of time whilst checking if the token is valid requires a request to GitHub, taking a second or longer. The way I have changed it means that it can do the longer validity check in the background while the user is being asked for the Package Identifier. In a situation where we have the token stored and it's valid, the user shouldn't notice that there are any checks happening.
from komac.
@allcontributors please add @vedantmgoyal2009 for bug
from komac.
I've put up a pull request to add @vedantmgoyal2009! 🎉
from komac.
Related Issues (20)
- [Bug]: Unintended Description Formatting HOT 1
- [Bug]: Different fields for each installer got dropped HOT 3
- [Bug]: Closed with unmerged commits
- [Feature/Idea]: Add a command for outputting the manifest locally HOT 2
- [Feature/Idea]: Signing commits HOT 1
- [Feature/Idea]: Document fine-grained permissions necessary for access token HOT 7
- [Bug]: Prompts not shown when same installer link is used for the second time
- Use Gradle Toolchain to pin JDK version
- Rust rewrite HOT 1
- [Bug]: Exception in thread "main" kotlin.UninitializedPropertyAccessException: lateinit property bestMatch has not been initialized HOT 2
- [Feature/Idea]: Mention `run-komac` GitHub Action in readme
- [Feature/Idea]: create manifests with version 1.5.0 by default HOT 3
- docs: Description of --urls needs clarification HOT 2
- [Bug]: Failed to delete downloaded temp file HOT 1
- [Feature/Idea]: Upgrade URLs to HTTPS
- [Feature/Idea]: Submit macOS version to Homebrew package manager HOT 2
- [Bug]: Unable to create PR HOT 6
- [Bug]: komac are not reusing latest version of manifest when updating package
- [Bug]: Failed to delete temp file HOT 1
- [Bug]: `Unknown file magic` with .msi installer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from komac.