Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protocol](https://github.com/stellar/stellar-xdr).
> if they need to be used with the binary, otherwise any new maintenance of code
> generators should happen using xdrgen as a library.
>
> The JavaScript and Go generators still live here at this time.
> The Go generator still lives here at this time.

> [!WARNING]
> .x files to the parser and code generators in this repository are considered a
Expand Down Expand Up @@ -87,5 +87,4 @@ The command line:

The CLI still has the following built-in generators:

- javascript
- golang
- go
4 changes: 2 additions & 2 deletions lib/xdrgen/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module CLI
def self.run(args)
args = args.dup
opts = Slop.parse! args do
banner 'Usage: xdrgen -o OUTPUT_DIR INPUT --language=javascript'
banner 'Usage: xdrgen -o OUTPUT_DIR INPUT --language=go'
on 'o', 'output=', 'The output directory'
on 'l', 'language=', 'The output language', default: 'javascript'
on 'l', 'language=', 'The output language', default: 'go'
on 'n', 'namespace=', '"namespace" to generate code within (language-specific)'
end

Expand Down
1 change: 0 additions & 1 deletion lib/xdrgen/generators.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module Xdrgen::Generators

autoload :Base
autoload :Go
autoload :Javascript

def self.for_language(language)
const_get language.to_s.classify
Expand Down
258 changes: 0 additions & 258 deletions lib/xdrgen/generators/javascript.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/lib/xdrgen/generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

describe Xdrgen::Generators do
languages = %w(javascript go)
languages = %w(go)
focus_language = "" #"go"
focus_basename = "" #"optional.x"

Expand Down

This file was deleted.

33 changes: 0 additions & 33 deletions spec/output/generator_spec_javascript/const.x/MyXDR_generated.js

This file was deleted.

Loading
Loading