PoshRedisViewer

所属分类:collect
开发工具:F#
文件大小:0KB
下载次数:0
上传日期:2023-06-26 20:57:07
上 传 者sh-1993
说明:  用于powershell的紧凑型redis浏览器,
(A compact redis browser for powershell,)

文件列表:
LICENSE (1071, 2023-08-30)
PoshRedisViewer/ (0, 2023-08-30)
PoshRedisViewer/Directory.Packages.props (471, 2023-08-30)
PoshRedisViewer/PoshRedisViewer.sln (2153, 2023-08-30)
PoshRedisViewer/PoshRedisViewer/ (0, 2023-08-30)
PoshRedisViewer/PoshRedisViewer/App.fs (394, 2023-08-30)
PoshRedisViewer/PoshRedisViewer/PoshRedisViewer.fsproj (870, 2023-08-30)
PoshRedisViewer/PoshRedisViewer/Redis.fs (11282, 2023-08-30)
PoshRedisViewer/PoshRedisViewer/UI.fs (6076, 2023-08-30)
PoshRedisViewer/PoshRedisViewer/UILogic.fs (12789, 2023-08-30)
PoshRedisViewer/PoshRedisViewer/UIUtil.fs (10792, 2023-08-30)
PoshRedisViewer/PoshRedisViewerHost/ (0, 2023-08-30)
PoshRedisViewer/PoshRedisViewerHost/PoshRedisViewerHost.fsproj (489, 2023-08-30)
PoshRedisViewer/PoshRedisViewerHost/Program.fs (471, 2023-08-30)
PoshRedisViewer/PoshRedisViewerModule/ (0, 2023-08-30)
PoshRedisViewer/PoshRedisViewerModule/GetRedisViewerCommand.fs (1095, 2023-08-30)
PoshRedisViewer/PoshRedisViewerModule/PoshRedisViewerModule.fsproj (792, 2023-08-30)
PoshRedisViewer/PoshRedisViewerModule/PoshRedisViewerModule.psd1 (4309, 2023-08-30)
PoshRedisViewer/global.json (103, 2023-08-30)
Releases/ (0, 2023-08-30)
Releases/0.0.5/ (0, 2023-08-30)
Releases/0.0.5/En3Tho.FSharp.ComputationExpressions.dll (145920, 2023-08-30)
Releases/0.0.5/En3Tho.FSharp.Extensions.dll (371200, 2023-08-30)
Releases/0.0.5/FSharp.Core.dll (3087472, 2023-08-30)
Releases/0.0.5/NStack.dll (203264, 2023-08-30)
Releases/0.0.5/Pipelines.Sockets.Unofficial.dll (166912, 2023-08-30)
Releases/0.0.5/Ply.dll (132096, 2023-08-30)
Releases/0.0.5/PoshRedisViewer.dll (93184, 2023-08-30)
Releases/0.0.5/PoshRedisViewerModule.dll (10752, 2023-08-30)
Releases/0.0.5/PoshRedisViewerModule.psd1 (4247, 2023-08-30)
Releases/0.0.5/StackExchange.Redis.dll (635904, 2023-08-30)
Releases/0.0.5/System.IO.Pipelines.dll (67464, 2023-08-30)
Releases/0.0.5/Terminal.Gui.dll (461824, 2023-08-30)
Releases/0.0.6/ (0, 2023-08-30)
Releases/0.0.6/En3Tho.FSharp.ComputationExpressions.dll (303104, 2023-08-30)
Releases/0.0.6/En3Tho.FSharp.Extensions.dll (381952, 2023-08-30)
Releases/0.0.6/FSharp.Core.dll (3087488, 2023-08-30)
... ...

# PoshRedisViewer A compact redis browser for powershell powered by https://github.com/StackExchange/StackExchange.Redis and https://github.com/migueldeicaza/gui.cs https://www.powershellgallery.com/packages/PoshRedisViewerModule ![img.png](https://github.com/En3Tho/PoshRedisViewer/blob/master/img.png) It allows you to: 1. Look for Redis Keys via Scan/Keys (depending on Redis version) 2. View the type and contents of specified key 3. Filter keys without requerying them from Redis 4. Filter results to look for useful information 5. Execute custom commands 6. Select DB index Copy and Paste is allowed: - Windows: Ctrl+C | Ctrl+V - Linux: Ctrl+Y | Ctrl+V - Keys and Results list views support copying by right-clicking on them - In case when OS clipboard (clip/xclip) is not available, pasting from internal mini-clipboard is available with Ctrl+B combination Query, command and filter execution require "Enter" key press. Also, keys and commands support history mode using CursorUp and CursorDown keys. Powershell module exports "Get-RedisViewer" command: - [0, Mandatory] ConnectionString - [Optional] User - [Optional] Password Example: ``` Install-Module -Name PoshRedisViewerModule Import-Module -Name PoshRedisViewerModule ``` then ``` Get-RedisViewer "localhost:6379" ``` or ``` Get-RedisViewer "localhost:6379" -User me -Password myPassword ``` ## Development 1. Install power shell 2. Clone the GitHub repository ### Testing application The easiest way to test the module is to run the PoshRedisViewerHost project ``` cd .\PoshRedisViewer\PoshRedisViewerHost\ dotnet run ``` ### Testing as a Powershell Module To test running as a powershell module 1. Build the repository (if building on linux use `-r linux-x64`) ``` cd PoshRedisViewer dotnet publish -o .artifacts -r win-x64 ``` 2. Copy the psd1 file into the build directory ``` cp .\PoshRedisViewerModule\PoshRedisViewerModule.psd1 .\.artifacts\ ``` 3. Start a new powershell instance (prevents stale modules sitting around etc) ``` pwsh noprofile ``` 4. Import the module ``` Import-Module -Name ".\.artifacts\PoshRedisViewerModule.psd1" ``` ## Testing With Redis Docker Image 1. Start a new Redis via docker: ``` docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:latest ``` 2. Connect using PoshRedisViewer ``` Get-RedisViewer "localhost:6379" ``` 3. Create a Redis key entry by clicking in the 'Command' window and enter ``` set fish haddock ``` 4. Query the Redis to see the key by clicking in 'KeyQuery' and pressing enter ![Screenshot showing query results fetched from Redis. Key 'fish' has value 'haddock'.](https://github.com/En3Tho/PoshRedisViewer/blob/master/./fish-haddock.png) TODO: - Tabs/add to favorites - Results filter history - Quick commands to change/set values

近期下载者

相关文件


收藏者