From a8f97f5aa2487fdfd25253a83aafae04aadb089c Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Thu, 14 Mar 2024 14:46:12 +0100 Subject: [PATCH] docs(export): remove deprecated flags --- src/cli/config_export_image.go | 2 -- website/docs/share-theme.md | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/cli/config_export_image.go b/src/cli/config_export_image.go index 191016bd..56c3f56c 100644 --- a/src/cli/config_export_image.go +++ b/src/cli/config_export_image.go @@ -109,8 +109,6 @@ Exports the config to an image file using customized output options.`, func init() { //nolint:gochecknoinits imageCmd.Flags().StringVar(&author, "author", "", "config author") imageCmd.Flags().StringVar(&bgColor, "background-color", "", "image background color") - // imageCmd.Flags().IntVar(&cursorPadding, "cursor-padding", 0, "prompt cursor padding") - // imageCmd.Flags().IntVar(&rPromptOffset, "rprompt-offset", 0, "right prompt offset") imageCmd.Flags().StringVarP(&outputImage, "output", "o", "", "image file (.png) to export to") exportCmd.AddCommand(imageCmd) } diff --git a/website/docs/share-theme.md b/website/docs/share-theme.md index 1700a93f..003c3d50 100644 --- a/website/docs/share-theme.md +++ b/website/docs/share-theme.md @@ -16,14 +16,13 @@ The oh-my-posh executable has the `config export image` command to export your c to an image file (.png). ```powershell -oh-my-posh config export image --cursor-padding 50 +oh-my-posh config export image ``` There are a couple of additional flags you can use to tweak the image rendering: -- `--cursor-padding`: spaces to add after the cursor indication (`_`) -- `--rprompt-offset`: spaces to add **before** a block that's right aligned - `--author`: the name of the creator, added after `ohmyposh.dev` - `--background-color`: the hex background color to use (e.g. `#222222`) +- `--output`: the file to export to (e.g. `theme.png`) For all options, and additional examples, use `oh-my-posh config export image --help`