Skip to content
Snippets Groups Projects
Select Git revision
  • c229d9d34c135afbd309cf73ebf1d8cc28c8b923
  • main default protected
  • dependabot/go_modules/github.com/prometheus/client_golang-1.23.0
  • automated-updates-main
  • release-0.14
  • 14-env
  • fix-version-3
  • automated-updates-fix-action
  • release-0.15
  • release-0.13
  • automated-updates-release-0.13
  • release-0.10
  • release-0.11
  • release-0.12
  • fix-versions-action
  • versions-fix
  • release-0.9
  • release-0.8
  • release-0.7
  • release-0.6
  • release-0.5
  • v0.15.0
  • v0.14.0
  • v0.13.0
  • v0.12.0
  • v0.11.0
  • v0.10.0
  • v0.9.0
  • v0.8.0
  • v0.7.0
  • v0.6.0
  • v0.5.0
  • v0.4.0
  • v0.3.0
  • v0.2.0
  • v0.1.0
36 results

weave-net-support.md

Blame
  • completion_powershell.go NaN GiB
    /*
    Copyright 2020 The Flux authors
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
        http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package main
    
    import (
    	"os"
    
    	"github.com/spf13/cobra"
    )
    
    var completionPowerShellCmd = &cobra.Command{
    	Use:   "powershell",
    	Short: "Generates powershell completion scripts",
    	Example: `To load completion run
    
    . <(flux completion powershell)
    
    To configure your powershell shell to load completions for each session add to your powershell profile
    
    Windows:
    
    cd "$env:USERPROFILE\Documents\WindowsPowerShell\Modules"
    flux completion powershell >> flux-completion.ps1
    
    Linux:
    
    cd "${XDG_CONFIG_HOME:-"$HOME/.config/"}/powershell/modules"
    flux completion powershell >> flux-completions.ps1`,
    	Run: func(cmd *cobra.Command, args []string) {
    		rootCmd.GenPowerShellCompletion(os.Stdout)
    	},
    }
    
    func init() {
    	completionCmd.AddCommand(completionPowerShellCmd)
    }