Comments (11)
Actually, I can handle it.
from alfy.
process.env
?
from alfy.
So this should work? alfy.output([{ title: process.env.NVM_DIR }]);
Is there a way to console.log this without using alfy.output()?
from alfy.
Yes, you could console.error(process.env.NVM_DIR)
and check the debug panel in your workflow in Alfred.
from alfy.
I guess we could add a alfred.debug()
method.
from alfy.
Just curious, why do you need process.env.NVM_DIR
?
from alfy.
Just an example, I wanted to have the user set the GITHUB_API_TOKEN locally so they can make API calls to their repos. Requires auth. Let me know if you know a diff way I can accomplish the same task? And thank you for all your hard work!
from alfy.
Oh nice, I didn't know there was a debug panel. π That should be sufficient. Maybe we can add that to the docs?! I can put up a PR if you prefer.
from alfy.
I can put up a PR if you prefer.
π
from alfy.
Done: #56
from alfy.
Let me know if you know a diff way I can accomplish the same task?
That's the best way until #36 is implemented.
from alfy.
Related Issues (20)
- ERR_INPUT_TYPE_NOT_ALLOWED with example script HOT 3
- Remove broken links in Users section
- Running basic script takes 5s and throws error
- Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader HOT 3
- Type for "mods" requires all properties to be defined
- alfy.matches doesn't work with umlauts
- fetch method does not work correctly HOT 1
- fetch with `json: false` is ignored? HOT 2
- Script filter with images? HOT 1
- Usage with bun? HOT 1
- Dependabot alerts on dependencies HOT 2
- Using console log in global scope crashes the execution HOT 3
- Package location different than workflow location
- Cannot use import statement outside a module HOT 1
- Package workflows so that end users donβt require `node` at runtime? HOT 1
- How should Alfy change to accommodate the new Alfred Gallery? HOT 2
- How to show a loading indicator? HOT 1
- Alfred 5 HOT 1
- Unable to install and use Alfred workflow locally HOT 1
- Alfy.fetch not working with https HOT 1
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 alfy.