Git Product home page Git Product logo

Comments (4)

athaynes avatar athaynes commented on September 1, 2024

Can you give a little bit more info on how you would like this to behave?

from powerstig.

camusicjunkie avatar camusicjunkie commented on September 1, 2024

I would like the cmdlet to resolve a relative path for the destination parameter. For example if my current directory is c: and I run:

ConvertTo-PowerStigXml -Path c:\stig.xml -Destination .\Temp

I would like the output to be saved to the Temp folder. Currently when that is run it errors and and doesn't save the output unless I provide an absolute path like c:\Temp as the destination.

I've been able to get my desired outcome by modifying line 202 of Functions.PowerStigXml.ps1 with:

$OutPath = Get-OutputFileRoot -Path $Path -Destination (Resolve-Path -Path $Destination)

from powerstig.

athaynes avatar athaynes commented on September 1, 2024

Makes sense to me, Can you submit a PR for this?

On a side note, none of this convert module code will be published to the PS gallery. It is only intended to be used here to convert the STIG file that we will publish to the gallery. With this in mind, you only need to update the unreleased section of the readme if you are submitting a converted STIG file or one of the STIG.* modules.

from powerstig.

athaynes avatar athaynes commented on September 1, 2024

As I was working on Issue #19 I realized this can be fixed in that PR, so once PR #23 closes, this will be resolved.

from powerstig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.