Comments (8)
So were you thinking of something like this?
!install-plugin --source 'https://github.com/dfinke/NameIT.git'
That could git clone
the repo and look for a module manifest file named NameIT.psd1
at the root. This would work for those that like to have the module at the root of the repo.
You could also specify a subfolder with the //
method similar to how Terraform does it here to tell PoshBot that the actual module lives in a subfolder and PoshBot would assume that the manifest file is named the same as the subfolder.
!install-plugin --source 'https://github.com/poshbotio/PoshBot.Wolfram.git//PoshBot.Wolfram'
The next question is where does it git clone
them to? My thinking would be to clone them to whatever directory is specified in the PluginDirectory
property of your PoshBot configuration. That directory is added to $env:PSModulePath
on bot startup.
The next next question is what to do when you run the above !install-plugin
command again for the same git URL and get an updated version? Do you stomp on the original you just downloaded or support side by side? Maybe track the hash of each git clone
?
I like this idea but we should brainstorm how it would play out from a users' point of view because they're running these commands in a chat window so they don't have the full command line available to help troubleshoot.
from poshbot.
I'm thinking PoshBot.<PluginName>
would be good convention. Bonus points for adding a PoshBot
tag in the module manifest for easy searching.
.
seems to be the leader in the separation character wars, at least on the PSGallery.
(find-module -repository psgallery -name '*.*').Count
176
(find-module -repository psgallery -name '*-*').Count
123
A while back I setup a separate GitHub org with the intention of moving the project over there and perhaps hosting a GH pages site. The poshbot.io domain is mine as well. We could start with building a doc page listing compatible modules and then later move to a jekyll site or something similar.
from poshbot.
Hiyo!
Question for you! So... gallery is awesome, but for those of us who (1) might not have an internal package manager with nuget support (wat. I know.), or (2) want to test or pull things directly from GitHub or git, would you ever consider adding other plugin sources?
I think either way works. Not sure if worth the potential complexity and room-for-confusion it might create. Folks can always pre-stage modules as needed, or use some other method to pull them in to a spot PoshBot will see them.
Example code (ugly, sorry, some assumptions based on the project these are in, and a lazy author):
Cheers!
from poshbot.
I think PoshBot.<PluginName>
is probably for the best, too - the -
is more often used as a verb-noun separator, even in module names (eg, Invoke-Parallel
, Invoke-Build
, etc).
Starting with a doc page is probably easiest, especially since there are no other modules on the gallery for PoshBot yet.
I can take a look at the code for plugins and add the automatic removal of Poshbot.
from the beginning of module names when displayed and add that doc file.
from poshbot.
Agreed, would probably add too much complexity. Realistically, folks should be able to pick this up offline, or could write a poshbot plugin specifically built for this rather than trying to shoehorn this.
Cheers!
from poshbot.
So, I like this idea, but it also adds another level of complexity / installs PowerShell modules into a (probably) non-obvious location on disk.
This does make me wonder if this type of functionality should exist in *-Module
though, for PowerShellGet.
from poshbot.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from poshbot.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from poshbot.
Related Issues (20)
- FunctionApp creation not working as expected HOT 2
- Recently having issues with 403 forbidden and 50001 Missing access errors. HOT 5
- How to define ChannelRules in Microsoft Teams channels? HOT 3
- Got Stuck with instructions for Microsoft Teams HOT 1
- Starting new discord bot instance gives method not found: no ForEach in PSCustomObject HOT 2
- Discord - cannot find user by discord handle with or without tag HOT 4
- Threads: Is it possible to execute command in thread and have results post back to it? HOT 1
- Slack Threads: Is it possible to execute command in thread and have results post back to it? HOT 2
- "CallingUserInfo":null for Teams Backend HOT 1
- IRC - PoshBot Backend
- PoshBot Powershell Gallery \r\n+ HOT 2
- Writing emojis to Discord backend converts to ascii HOT 1
- Scheduled Task not respecting Daylight Savings (DST) HOT 2
- Discord User-Agent required
- Discord Backend errors when connecting to server with "Stage" channel
- Poshbot - Teams Implementation output wraps at around 52 chars when using New-PoshbotCardResponse -text HOT 3
- Teams Backend stopped working HOT 5
- PoshBot not receiving webhook information in Teams console HOT 8
- Discord Slash Commands Support HOT 1
- Cannot connect to Discord backend 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 poshbot.